[PATCH V2 0/1] KVM: TDX: Decrease TDX VM shutdown time

Adrian Hunter posted 1 patch 8 months ago
There is a newer version of this series
Documentation/virt/kvm/x86/intel-tdx.rst | 16 ++++++++
arch/x86/include/uapi/asm/kvm.h          |  1 +
arch/x86/kvm/vmx/tdx.c                   | 63 ++++++++++++++++++++++----------
3 files changed, 61 insertions(+), 19 deletions(-)
[PATCH V2 0/1] KVM: TDX: Decrease TDX VM shutdown time
Posted by Adrian Hunter 8 months ago
Hi

The version 1 RFC:

	https://lore.kernel.org/all/20250313181629.17764-1-adrian.hunter@intel.com/

listed 3 options and implemented option 2.  Sean replied with code for
option 1, which tested out OK, so here it is plus a commit log.

It depends upon kvm_trylock_all_vcpus(kvm) which is the assumed result
of Maxim's work-in-progress here:

      https://lore.kernel.org/all/20250409014136.2816971-1-mlevitsk@redhat.com/

Note it is assumed that kvm_trylock_all_vcpus(kvm) follows the return value
semantics of mutex_trylock() i.e. 1 means locks have been successfully
acquired, 0 means not succesful.


Sean Christopherson (1):
      KVM: TDX: Add sub-ioctl KVM_TDX_TERMINATE_VM

 Documentation/virt/kvm/x86/intel-tdx.rst | 16 ++++++++
 arch/x86/include/uapi/asm/kvm.h          |  1 +
 arch/x86/kvm/vmx/tdx.c                   | 63 ++++++++++++++++++++++----------
 3 files changed, 61 insertions(+), 19 deletions(-)


Regards
Adrian