Re: [PATCH v2 0/3] KVM: TDX: Syntehsize SHUTDOWN on unhandled EPT Violation
From: Sean Christopherson
Date: Tue Sep 29 2026 - 20:55:25 EST
On Wed, Sep 30, 2026, Rick P Edgecombe wrote:
> On Tue, 2026-09-29 at 17:11 -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.
>
> I'm pretty sure Yan had a test for this path, and I'd love to see it actually
> exercised. What is the urgency on getting this fix upstream? Can we wait a week?
Absolutely. It can probably wait a month and no one would care. IIRC, this got
hit by someone (internal to Google) deliberately crashing a guest kernel and doing
funky things with kexec. It showed up on my radar purely because our automated
madness alerted on the resulting assertion (on -EIO) in the VMM.