[RFC PATCH kvmtool v1 32/32] pkvm: Unmap all guest memory after initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In pkvm, assume that all guest memory is private and unmap it by default.
If it's shared and needed, the host can map it later.

Signed-off-by: Fuad Tabba <tabba@xxxxxxxxxx>
---
 builtin-run.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/builtin-run.c b/builtin-run.c
index 9ec5701..23a4f8b 100644
--- a/builtin-run.c
+++ b/builtin-run.c
@@ -780,6 +780,9 @@ static struct kvm *kvm_cmd_run_init(int argc, const char **argv)
 	if (init_list__init(kvm) < 0)
 		die ("Initialisation failed");
 
+	if (kvm->cfg.pkvm)
+		unmap_guest(kvm);
+
 	return kvm;
 }
 
-- 
2.39.0.rc0.267.gcb52ba06e7-goog




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux