commit | 2330c43f2e5a1ab723edb719bc62c3fad0338d3e | [log] [tgz] |
---|---|---|
author | Fuad Tabba <tabba@google.com> | Thu Oct 13 15:56:21 2022 +0100 |
committer | Fuad Tabba <tabba@google.com> | Tue Dec 06 12:42:10 2022 +0000 |
tree | 290d2081b2b7ee717eb15586b48da7128aab7847 | |
parent | 780afed84f39490d67cb4ea5568920cd701f94e9 [diff] |
pkvm: Unmap all guest memory after initialization 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@google.com>
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 @@ if (init_list__init(kvm) < 0) die ("Initialisation failed"); + if (kvm->cfg.pkvm) + unmap_guest(kvm); + return kvm; }