Re: [PATCH] KVM: x86/mmu: Bug the VM, not the host kernel, if KVM write-protects upper SPTEs

From: Paolo Bonzini

Date: Wed Jun 24 2026 - 05:39:17 EST


Queued, thanks. I adjusted the commit message to include Kai's
ovservation:

Instead of bugging the host kernel, WARN and terminate the VM if KVM
attempts to write-protect at a level that cannot use leaf SPTEs.
There is no reason to bring down the entire host; even terminating
the VM is likely overkill, but in theory a missed write could corrupt
guest memory, so play it safe.

Paolo