Skip to content

Commit b4ff2ef

Browse files
sean-jcbonzini
authored andcommitted
KVM: x86: Select KVM_GENERIC_PRIVATE_MEM directly from KVM_SW_PROTECTED_VM
Now that KVM_SW_PROTECTED_VM doesn't have a hidden dependency on KVM_X86, select KVM_GENERIC_PRIVATE_MEM from within KVM_SW_PROTECTED_VM instead of conditionally selecting it from KVM_X86. No functional change intended. Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Reviewed-by: Fuad Tabba <tabba@google.com> Message-ID: <20250729225455.670324-4-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 1d95f2d commit b4ff2ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kvm/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ config KVM_X86
4646
select HAVE_KVM_PM_NOTIFIER if PM
4747
select KVM_GENERIC_HARDWARE_ENABLING
4848
select KVM_GENERIC_PRE_FAULT_MEMORY
49-
select KVM_GENERIC_PRIVATE_MEM if KVM_SW_PROTECTED_VM
5049
select KVM_WERROR if WERROR
5150

5251
config KVM
@@ -84,6 +83,7 @@ config KVM_SW_PROTECTED_VM
8483
bool "Enable support for KVM software-protected VMs"
8584
depends on EXPERT
8685
depends on KVM_X86 && X86_64
86+
select KVM_GENERIC_PRIVATE_MEM
8787
help
8888
Enable support for KVM software-protected VMs. Currently, software-
8989
protected VMs are purely a development and testing vehicle for

0 commit comments

Comments
 (0)