]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
KVM: TDX: Make TDX VM type supported
authorIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 10 Dec 2024 00:49:43 +0000 (08:49 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Mar 2025 18:20:58 +0000 (14:20 -0400)
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 <isaku.yamahata@intel.com>
Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com>
---
TDX "the rest" v2:
- No change.

TDX "the rest" v1:
- Move down to the end of patch series.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/main.c

index 3d8a13e66d364d9f5902c0ead15144ee64c13e2c..94d5d907d37b2b172c07a964691ce25dbf6b2ff0 100644 (file)
@@ -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);
        }
 
        /*