Skip to content

Commit 924121e

Browse files
sean-jcbonzini
authored andcommitted
KVM: x86: Select TDX's KVM_GENERIC_xxx dependencies iff CONFIG_KVM_INTEL_TDX=y
Select KVM_GENERIC_PRIVATE_MEM and KVM_GENERIC_MEMORY_ATTRIBUTES directly from KVM_INTEL_TDX, i.e. if and only if TDX support is fully enabled in KVM. There is no need to enable KVM's private memory support just because the core kernel's INTEL_TDX_HOST is enabled. 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-5-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent b4ff2ef commit 924121e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/kvm/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ config KVM_SW_PROTECTED_VM
9595
config KVM_INTEL
9696
tristate "KVM for Intel (and compatible) processors support"
9797
depends on KVM && IA32_FEAT_CTL
98-
select KVM_GENERIC_PRIVATE_MEM if INTEL_TDX_HOST
99-
select KVM_GENERIC_MEMORY_ATTRIBUTES if INTEL_TDX_HOST
10098
help
10199
Provides support for KVM on processors equipped with Intel's VT
102100
extensions, a.k.a. Virtual Machine Extensions (VMX).
@@ -135,6 +133,8 @@ config KVM_INTEL_TDX
135133
bool "Intel Trust Domain Extensions (TDX) support"
136134
default y
137135
depends on INTEL_TDX_HOST
136+
select KVM_GENERIC_PRIVATE_MEM
137+
select KVM_GENERIC_MEMORY_ATTRIBUTES
138138
help
139139
Provides support for launching Intel Trust Domain Extensions (TDX)
140140
confidential VMs on Intel processors.

0 commit comments

Comments
 (0)