RFC KVM: TDX: MWAIT in guest
Status from this message: NAK.
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 10 repliesNAK
Patches in v1
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: TDX: Disable general support for MWAIT in guestarch/ arch/ arch/ | +28 | 10 replies | |
| 2/2 | KVM: TDX: Add flag to support MWAIT instruction onlyDocumentation/ arch/ arch/ | +72 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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