KVM: TDX: Syntehsize SHUTDOWN on unhandled EPT Violation
Status from this message: Applied to kvm-x86 vmx. I moved the ratelimit patch first, as Yan suggested
Get series with b4
b4 am [email protected]Versions newest first
Changes in v2 from the cover letter
- Return SHUTDOWN directly, via a new helper. [Rick]
- Ratelimit the error message. [Sashiko, (and past me, amusingly)]
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | KVM: x86: Add a helper to prepare vcpu->run for a SHUTDOWN exit to userspacearch/ arch/ arch/ +2 more | +12 | 1 reply | |
| 2/3 | KVM: TDX: Synthesize SHUTDOWN instead of returning -EIO on unhandled EPT violationarch/ | +2 | 3 replies | |
| 3/3 | KVM: TDX: Ratelimit the "EPT Violation on pending acceptance page" warningarch/ | +2 | 4 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Binbin Wu |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] KVM: TDX: Syntehsize SHUTDOWN on unhandled EPT Violation
Signal SHUTDOWN instead of -EIO if the guest accesses an unaccepted page and has disabled EPT Violation #VEs on such accesses. Returning -EIO is all but guaranteed to mislead the VMM into thinking KVM (or the VMM) messed up, and will likely result in the VM being terminated instead of rebooted.
v2:
- Return SHUTDOWN directly, via a new helper. [Rick]
- Ratelimit the error message. [Sashiko, (and past me, amusingly)]
v1: https://lore.kernel.org/all/[email protected]
Sean Christopherson (3):
KVM: x86: Add a helper to prepare vcpu->run for a SHUTDOWN exit to
userspace
KVM: TDX: Synthesize SHUTDOWN instead of returning -EIO on unhandled
EPT violation
KVM: TDX: Ratelimit the "EPT Violation on pending acceptance page"
warning
arch/x86/kvm/svm/svm.c | 3 +-- arch/x86/kvm/vmx/tdx.c | 11 +++++------ arch/x86/kvm/vmx/vmx.c | 3 +-- arch/x86/kvm/x86.c | 3 +-- include/linux/kvm_host.h | 8 ++++++++ 5 files changed, 16 insertions(+), 12 deletions(-)
base-commit: a0bc8e1d7a82bb143b8f8f44ae3a01938f37c2ea
Signature · 1 line
2.56.0.rc1.315.gc6ed9934b7-goog