hypervisor: Add control for dirty page logging

When creating a userspace mapping provide a control for enabling the
logging of dirty pages.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-11-11 18:16:39 +00:00
parent b399287430
commit 8baa244ec1
6 changed files with 19 additions and 2 deletions

View File

@@ -1115,6 +1115,7 @@ impl MemoryManager {
memory_size,
userspace_addr,
readonly,
false,
);
self.vm
@@ -1168,6 +1169,7 @@ impl MemoryManager {
0, /* memory_size -- using 0 removes this slot */
userspace_addr,
false, /* readonly -- don't care */
false, /* log dirty */
);
self.vm