]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: Add a dedicated API for setting KVM-internal memslots
authorSean Christopherson <seanjc@google.com>
Sat, 11 Jan 2025 00:20:20 +0000 (16:20 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 15 Jan 2025 01:36:15 +0000 (17:36 -0800)
commit156bffdb2b49fc0c869bf160a57378886f5fa92d
tree7969fcf58f23078d6c5a52c3343998a2a10962e7
parentd131f0042f466d558f7b75af5e100b62a91a5803
KVM: Add a dedicated API for setting KVM-internal memslots

Add a dedicated API for setting internal memslots, and have it explicitly
disallow setting userspace memslots.  Setting a userspace memslots without
a direct command from userspace would result in all manner of issues.

No functional change intended.

Cc: Tao Su <tao1.su@linux.intel.com>
Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Acked-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Link: https://lore.kernel.org/r/20250111002022.1230573-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c