On Wed, Mar 20, 2024 at 01:12:01PM +0800,
Chao Gao <chao.gao@xxxxxxxxx> wrote:
config KVM_SW_PROTECTED_VM
bool "Enable support for KVM software-protected VMs"
- depends on EXPERT
[...]I wanted KVM_GENERIC_PRIVATE_MEM. Ah, we should dodepends on KVM && X86_64why does INTEL_TDX_HOST select KVM_SW_PROTECTED_VM?
select KVM_GENERIC_PRIVATE_MEM
help
@@ -89,6 +88,8 @@ config KVM_SW_PROTECTED_VM
config KVM_INTEL
tristate "KVM for Intel (and compatible) processors support"
depends on KVM && IA32_FEAT_CTL
+ select KVM_SW_PROTECTED_VM if INTEL_TDX_HOST
select KKVM_GENERIC_PRIVATE_MEM if INTEL_TDX_HOST
+ select KVM_GENERIC_MEMORY_ATTRIBUTES if INTEL_TDX_HOST
help
.vcpu_precreate = vmx_vcpu_precreate,
.vcpu_create = vmx_vcpu_create,