[PATCH v3 0/3] KVM: VMX: Initialize TDX during KVM module load

Paolo Bonzini posted 3 patches 1 year, 2 months ago
arch/x86/kvm/Kconfig     |  10 +++
arch/x86/kvm/Makefile    |   1 +
arch/x86/kvm/vmx/main.c  |  41 ++++++++++
arch/x86/kvm/vmx/tdx.c   | 160 +++++++++++++++++++++++++++++++++++++++
arch/x86/kvm/vmx/tdx.h   |  13 ++++
arch/x86/kvm/vmx/vmx.c   |  23 +-----
arch/x86/kvm/vmx/vmx.h   |   3 +
include/linux/kvm_host.h |   9 +++
virt/kvm/kvm_main.c      |  21 ++---
9 files changed, 245 insertions(+), 36 deletions(-)
create mode 100644 arch/x86/kvm/vmx/tdx.c
create mode 100644 arch/x86/kvm/vmx/tdx.h
[PATCH v3 0/3] KVM: VMX: Initialize TDX during KVM module load
Posted by Paolo Bonzini 1 year, 2 months ago
This is a slightly reviewed version of Kai's same-titled series.
The changes in patch 4 I include rewording the comments, adding
a check that enable_virt_at_load=1, and an error message for
!cpu_feature_enabled(X86_FEATURE_TDX_HOST_PLATFORM).

Paolo

Kai Huang (3):
  KVM: Export hardware virtualization enabling/disabling functions
  KVM: VMX: Refactor VMX module init/exit functions
  KVM: VMX: Initialize TDX during KVM module load

 arch/x86/kvm/Kconfig     |  10 +++
 arch/x86/kvm/Makefile    |   1 +
 arch/x86/kvm/vmx/main.c  |  41 ++++++++++
 arch/x86/kvm/vmx/tdx.c   | 160 +++++++++++++++++++++++++++++++++++++++
 arch/x86/kvm/vmx/tdx.h   |  13 ++++
 arch/x86/kvm/vmx/vmx.c   |  23 +-----
 arch/x86/kvm/vmx/vmx.h   |   3 +
 include/linux/kvm_host.h |   9 +++
 virt/kvm/kvm_main.c      |  21 ++---
 9 files changed, 245 insertions(+), 36 deletions(-)
 create mode 100644 arch/x86/kvm/vmx/tdx.c
 create mode 100644 arch/x86/kvm/vmx/tdx.h

-- 
2.43.5