Re: [PATCH v2 0/3] KVM: TDX: Syntehsize SHUTDOWN on unhandled EPT Violation

From: Sean Christopherson

Date: Fri Nov 13 2026 - 10:08:49 EST


On Tue, 29 Sep 2026 17:11:24 -0700, Sean Christopherson wrote:
> 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)]
>
> [...]

Applied to kvm-x86 vmx. I moved the ratelimit patch first, as Yan suggested
(ignore the ordering below). Thanks!

[1/3] KVM: x86: Add a helper to prepare vcpu->run for a SHUTDOWN exit to userspace
https://github.com/kvm-x86/linux/commit/def30ba0b6c3
[2/3] KVM: TDX: Synthesize SHUTDOWN instead of returning -EIO on unhandled EPT violation
https://github.com/kvm-x86/linux/commit/a1b89df10ed8
[3/3] KVM: TDX: Ratelimit the "EPT Violation on pending acceptance page" warning
https://github.com/kvm-x86/linux/commit/0b1431a34f1a

--
https://github.com/kvm-x86/linux/tree/next