]> www.infradead.org Git - nvme.git/commit
KVM: Add KVM_PRE_FAULT_MEMORY vcpu ioctl to pre-populate guest memory
authorIsaku Yamahata <isaku.yamahata@intel.com>
Wed, 10 Apr 2024 22:07:28 +0000 (15:07 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Jul 2024 15:17:35 +0000 (11:17 -0400)
commitbc1a5cd002116552db4c3541e91f8a5b1b0cf65d
tree9b31b2fe69d67e53c74a15eda904c59e6aa203f2
parent9aed7a6c0b591801177c90137df43f244e2af9bb
KVM: Add KVM_PRE_FAULT_MEMORY vcpu ioctl to pre-populate guest memory

Add a new ioctl KVM_PRE_FAULT_MEMORY in the KVM common code. It iterates on the
memory range and calls the arch-specific function.  The implementation is
optional and enabled by a Kconfig symbol.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Message-ID: <819322b8f25971f2b9933bfa4506e618508ad782.1712785629.git.isaku.yamahata@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
include/uapi/linux/kvm.h
virt/kvm/Kconfig
virt/kvm/kvm_main.c