mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Create guest memory regions with explicit dirty-pages-log flags
As we are now using an global control to start/stop dirty pages log from
the `hypervisor` crate, we need to explicitly tell the hypervisor (KVM)
whether a region needs dirty page tracking when it is created.
This reverts commit f063346de3.
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
@@ -769,6 +769,8 @@ impl Vm {
|
||||
&config.lock().unwrap().memory.clone(),
|
||||
false,
|
||||
phys_bits,
|
||||
#[cfg(feature = "tdx")]
|
||||
tdx_enabled,
|
||||
)
|
||||
.map_err(Error::MemoryManager)?;
|
||||
|
||||
@@ -889,6 +891,8 @@ impl Vm {
|
||||
&config.lock().unwrap().memory.clone(),
|
||||
false,
|
||||
phys_bits,
|
||||
#[cfg(feature = "tdx")]
|
||||
false,
|
||||
)
|
||||
.map_err(Error::MemoryManager)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user