From: Adrian Hunter <adrian.hunter@intel.com>
To: pbonzini@redhat.com, seanjc@google.com
Cc: kvm@vger.kernel.org, rick.p.edgecombe@intel.com,
kirill.shutemov@linux.intel.com, kai.huang@intel.com,
reinette.chatre@intel.com, xiaoyao.li@intel.com,
tony.lindgren@linux.intel.com, binbin.wu@linux.intel.com,
isaku.yamahata@intel.com, linux-kernel@vger.kernel.org,
yan.y.zhao@intel.com, chao.gao@intel.com, ira.weiny@intel.com
Subject: [PATCH RFC 0/2] KVM: TDX: MWAIT in guest
Date: Sat, 16 Aug 2025 17:44:33 +0300 [thread overview]
Message-ID: <20250816144436.83718-1-adrian.hunter@intel.com> (raw)
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
next reply other threads:[~2025-08-16 14:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-16 14:44 Adrian Hunter [this message]
2025-08-16 14:44 ` [PATCH RFC 1/2] KVM: TDX: Disable general support for MWAIT in guest Adrian Hunter
2025-08-18 14:05 ` Sean Christopherson
2025-08-18 15:07 ` Adrian Hunter
2025-08-18 18:49 ` Edgecombe, Rick P
2025-08-19 5:40 ` Binbin Wu
2025-08-19 15:59 ` Edgecombe, Rick P
2025-08-28 10:11 ` Binbin Wu
2025-08-19 7:38 ` Adrian Hunter
2025-08-19 15:07 ` Edgecombe, Rick P
2025-08-19 23:35 ` Sean Christopherson
2025-08-20 1:31 ` Xiaoyao Li
2025-08-16 14:44 ` [PATCH RFC 2/2] KVM: TDX: Add flag to support MWAIT instruction only Adrian Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250816144436.83718-1-adrian.hunter@intel.com \
--to=adrian.hunter@intel.com \
--cc=binbin.wu@linux.intel.com \
--cc=chao.gao@intel.com \
--cc=ira.weiny@intel.com \
--cc=isaku.yamahata@intel.com \
--cc=kai.huang@intel.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=reinette.chatre@intel.com \
--cc=rick.p.edgecombe@intel.com \
--cc=seanjc@google.com \
--cc=tony.lindgren@linux.intel.com \
--cc=xiaoyao.li@intel.com \
--cc=yan.y.zhao@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).