Skip to content

RFC KVM: TDX: MWAIT in guest

Adrian Hunter kvm lkml 1 version NAK

Status from this message: NAK.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 10 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/2KVM: TDX: Disable general support for MWAIT in guestarch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx/tdx.c arch/x86/kvm/x86.c+28 -410 replies
2/2KVM: TDX: Add flag to support MWAIT instruction onlyDocumentation/virt/kvm/x86/intel-tdx.rst arch/x86/include/uapi/asm/kvm.h arch/x86/kvm/vmx/tdx.c+72 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/2] KVM: TDX: MWAIT in guest

Hi

TDX support for using the MWAIT instruction in a guest has issues.

One option is just to disable it, see patch 1.

Then perhaps provide a distinct way to enable it, documenting the limitations TDX has compared with VMX in this regard, so that users will be made aware of the limitations. See patch 2.

Other options:
1. Do nothing but document the limitations.
2. Patch 1 but not patch 2; look for a better solution

Adrian Hunter (2):
KVM: TDX: Disable general support for MWAIT in guest
KVM: TDX: Add flag to support MWAIT instruction only

 Documentation/virt/kvm/x86/intel-tdx.rst | 28 ++++++++++-
 arch/x86/include/asm/kvm_host.h          |  2 +
 arch/x86/include/uapi/asm/kvm.h          |  3 ++
 arch/x86/kvm/vmx/tdx.c                   | 80 +++++++++++++++++++++++++-------
 arch/x86/kvm/x86.c                       |  8 ++--
 5 files changed, 98 insertions(+), 23 deletions(-)

Regards
Adrian