Hardware Transactional Memory for Virtual Machine Introspection Data Consistency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Virtual machine introspection systems face inaccuracies in security checks due to modifications made by the virtual machine while the VMI system acquires in-memory data, leading to inconsistencies and incomplete security assessments.

Innovation Solution

Implement a method that uses hardware transactional memory to monitor and store copies of to-be-checked data, ensuring that security checks are performed only when data consistency is maintained, and sending access violation messages to identify potential security breaches.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the VMI system reads to-be-checked data from the VM, then the VMI system can perform security checks, but the VM may modify the data during reading, resulting in data inconsistency

Engineering Contradiction:
Improvesecurity check accuracyVSAvoiddata consistency
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

The patent applies preliminary action by using hardware transactional memory to establish a consistent snapshot of the data before the VMI system begins reading. The hardware transactional memory captures the data state at a specific point in time and ensures that the VMI system reads from this consistent snapshot, preventing modifications by the VM during the reading process. This resolves the contradiction by ensuring both security check accuracy (through consistent data) and data reliability (through isolation from concurrent modifications).

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The hardware transactional memory acts as an intermediary between the VM and the VMI system. It mediates the data access by providing the VMI system with a consistent view of the data without allowing the VMI system to directly interfere with the VM's data modifications, and vice versa. This intermediary mechanism ensures that security checks can be performed on consistent data while the VM continues to operate normally.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If the VMI system continuously monitors data for modifications, then data consistency can be ensured, but the monitoring overhead increases system complexity

Engineering Contradiction:
Improvedata consistencyVSAvoidmonitoring mechanism complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The hardware transactional memory implements self-service by automatically managing the complexity of data consistency monitoring. The hardware itself handles the tracking of data modifications, the maintenance of transactional memory snapshots, and the detection of consistency violations without requiring complex software monitoring mechanisms. This transfers the monitoring burden from the software layer to the hardware layer, reducing overall system complexity while maintaining strong data consistency guarantees.

Inventive Principle:
Principle #25Self-service

3Productivity

If the VMI system reads all to-be-checked data at once, then security checks can be performed efficiently, but data modifications during reading lead to incomplete or inaccurate checks

Engineering Contradiction:
Improvesecurity check efficiencyVSAvoidsecurity check accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The hardware transactional memory performs preliminary action by capturing a complete, consistent snapshot of all to-be-checked data before the VMI system begins its security check. This snapshot is taken at a single point in time, ensuring that all data in the snapshot is consistent with each other. The VMI system can then efficiently read and analyze the entire snapshot without worrying about modifications occurring during the process, thus maintaining both security check efficiency and accuracy.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10007785B2Method and apparatus for implementing virtual machine introspection
Publication Date: 2018.06.26 HUAWEI TECH CO LTD
  • US10007785B2 patent drawing
  • US10007785B2 patent drawing
  • US10007785B2 patent drawing

AI summary

The present disclosure relates to the field of information technologies and discloses a method and an apparatus for implementing virtual machine introspection. The method provided in the present disclosure may further include: determining to-be-checked data in a virtual machine; starting to read the to-be-checked data, saving a copy of the read to-be-checked data, and storing a storage address of the read to-be-checked data in a hardware transactional memory, so that the hardware transactional memory is capable of monitoring the read to-be-checked data according to the storage address; when the read to-be-checked data is modified, stop reading the to-be-checked data, and delete the copy; and when reading the to-be-checked data is completed and it is not detected that the read to-be-checked data is modified, performing security check on the copy. The method can be applied to virtual machine introspection.