]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86/mmu: Bug the VM, not the host kernel, if KVM write-protects upper SPTEs
authorSean Christopherson <seanjc@google.com>
Thu, 18 Jun 2026 18:56:41 +0000 (11:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Jun 2026 09:33:04 +0000 (11:33 +0200)
commit8e5d793fc7173587cfdc075d2bb4a8d016fa050f
tree4fbee971a946880d0a76f35285b57ed5137c3abb
parent39e9c35e447b8ab49ddbc826c40ca31a425e76b2
KVM: x86/mmu: Bug the VM, not the host kernel, if KVM write-protects upper SPTEs

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 termininating
the VM is likely overkill, but in theory a missed write could corrupt
guest memory, so play it safe.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Message-ID: <20260618185641.2022368-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c