From: Isaku Yamahata Date: Tue, 10 Dec 2024 00:49:43 +0000 (+0800) Subject: KVM: TDX: Make TDX VM type supported X-Git-Tag: v6.16-rc1~78^2~17^2^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=161d34609f9b319d0706eaf7d2cb7a2731251b25;p=linux-2.6-block.git KVM: TDX: Make TDX VM type supported Now all the necessary code for TDX is in place, it's ready to run TDX guest. Advertise the VM type of KVM_X86_TDX_VM so that the user space VMM like QEMU can start to use it. Signed-off-by: Isaku Yamahata Signed-off-by: Binbin Wu --- TDX "the rest" v2: - No change. TDX "the rest" v1: - Move down to the end of patch series. Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/vmx/main.c b/arch/x86/kvm/vmx/main.c index 3d8a13e66d36..94d5d907d37b 100644 --- a/arch/x86/kvm/vmx/main.c +++ b/arch/x86/kvm/vmx/main.c @@ -1091,6 +1091,7 @@ static int __init vt_init(void) sizeof(struct vcpu_tdx)); vcpu_align = max_t(unsigned, vcpu_align, __alignof__(struct vcpu_tdx)); + kvm_caps.supported_vm_types |= BIT(KVM_X86_TDX_VM); } /*