diff options
author | Xiaoyao Li <xiaoyao.li@intel.com> | 2024-03-20 03:39:11 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-23 17:35:25 +0200 |
commit | bd3bcf6962b664ca3bf9c60fdcc4534e8e3d0641 (patch) | |
tree | acbbba5b119e812c3795269915466ccf4ec1cd0d /backends/hostmem-memfd.c | |
parent | ce5a983233b4ca94ced88c9581014346509b5c71 (diff) |
kvm/memory: Make memory type private by default if it has guest memfd backend
KVM side leaves the memory to shared by default, which may incur the
overhead of paging conversion on the first visit of each page. Because
the expectation is that page is likely to private for the VMs that
require private memory (has guest memfd).
Explicitly set the memory to private when memory region has valid
guest memfd backend.
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Message-ID: <20240320083945.991426-16-michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'backends/hostmem-memfd.c')
0 files changed, 0 insertions, 0 deletions