Skip to content

Commit 161d346

Browse files
yamahatabonzini
authored andcommitted
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 <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>
1 parent 90fe64a commit 161d346

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kvm/vmx/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,7 @@ static int __init vt_init(void)
10911091
sizeof(struct vcpu_tdx));
10921092
vcpu_align = max_t(unsigned, vcpu_align,
10931093
__alignof__(struct vcpu_tdx));
1094+
kvm_caps.supported_vm_types |= BIT(KVM_X86_TDX_VM);
10941095
}
10951096

10961097
/*

0 commit comments

Comments
 (0)