public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: VMX: Initialize TDX when loading KVM module
@ 2024-10-28 13:20 Kai Huang
  2024-10-28 13:20 ` [PATCH 1/3] KVM: VMX: Refactor VMX module init/exit functions Kai Huang
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: Kai Huang @ 2024-10-28 13:20 UTC (permalink / raw)
  To: pbonzini, seanjc, kvm, rick.p.edgecombe
  Cc: isaku.yamahata, reinette.chatre, binbin.wu, xiaoyao.li,
	yan.y.zhao, adrian.hunter, tony.lindgren, kristen, linux-kernel,
	Kai Huang

Hi Paolo/Sean,

This series contains patches to initialize TDX when loading KVM module.
This series is based on the discussion with Sean on the v19 patchset
[*], hoping it has addressed most (if not all) comments.

This series has been in our internal TDX tree for long time and has been
in kvm-coco-queue for some time thus it has been tested.

The main purpose for sending out is to have a review but this series can
also be applied to kvm/queue cleanly.

Thanks for your time!

[*]: https://lore.kernel.org/kvm/f028d43abeadaa3134297d28fb99f283445c0333.1708933498.git.isaku.yamahata@intel.com/

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

 arch/x86/kvm/Makefile    |   1 +
 arch/x86/kvm/vmx/main.c  |  38 +++++++++++++
 arch/x86/kvm/vmx/tdx.c   | 115 +++++++++++++++++++++++++++++++++++++++
 arch/x86/kvm/vmx/tdx.h   |  12 ++++
 arch/x86/kvm/vmx/vmx.c   |  23 +-------
 arch/x86/kvm/vmx/vmx.h   |   3 +
 include/linux/kvm_host.h |   8 +++
 virt/kvm/kvm_main.c      |  18 ++----
 8 files changed, 183 insertions(+), 35 deletions(-)
 create mode 100644 arch/x86/kvm/vmx/tdx.c
 create mode 100644 arch/x86/kvm/vmx/tdx.h


base-commit: 5cb1659f412041e4780f2e8ee49b2e03728a2ba6
-- 
2.46.2


^ permalink raw reply	[flat|nested] 23+ messages in thread
* [PATCH v3 0/3] KVM: VMX: Initialize TDX during KVM module load
@ 2024-11-27 20:10 Paolo Bonzini
  2024-11-27 20:10 ` [PATCH 3/3] " Paolo Bonzini
  0 siblings, 1 reply; 23+ messages in thread
From: Paolo Bonzini @ 2024-11-27 20:10 UTC (permalink / raw)
  To: linux-kernel, kvm; +Cc: kai.huang

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


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2024-11-28  3:34 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-28 13:20 [PATCH 0/3] KVM: VMX: Initialize TDX when loading KVM module Kai Huang
2024-10-28 13:20 ` [PATCH 1/3] KVM: VMX: Refactor VMX module init/exit functions Kai Huang
2024-10-28 13:20 ` [PATCH 2/3] KVM: Export hardware virtualization enabling/disabling functions Kai Huang
2024-10-28 13:20 ` [PATCH 3/3] KVM: VMX: Initialize TDX during KVM module load Kai Huang
2024-10-30 15:19   ` Sean Christopherson
2024-10-31 11:17     ` Huang, Kai
2024-10-31 20:22       ` Sean Christopherson
2024-10-31 21:21         ` Huang, Kai
2024-10-31 21:29           ` Edgecombe, Rick P
2024-11-06 14:19             ` Edgecombe, Rick P
2024-11-06 10:49         ` Huang, Kai
2024-11-06 15:01           ` Sean Christopherson
2024-11-06 20:06             ` Huang, Kai
2024-11-07 22:04               ` Sean Christopherson
2024-11-07 23:25                 ` Huang, Kai
2024-10-31 21:52       ` Dan Williams
2024-10-31 22:37         ` Huang, Kai
2024-10-31 22:56           ` Dan Williams
2024-10-28 17:41 ` [PATCH 0/3] KVM: VMX: Initialize TDX when loading KVM module Paolo Bonzini
  -- strict thread matches above, loose matches on Subject: below --
2024-11-27 20:10 [PATCH v3 0/3] KVM: VMX: Initialize TDX during KVM module load Paolo Bonzini
2024-11-27 20:10 ` [PATCH 3/3] " Paolo Bonzini
2024-11-28  3:00   ` Chao Gao
2024-11-28  3:04     ` Huang, Kai
2024-11-28  3:34   ` Huang, Kai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox