On Mon, 22 Jul 2024 17:02:11 -0700, Sean Christopherson wrote: > Error out if kvm_mmu_reload() fails when pre-faulting memory, as trying to > fault-in SPTEs will fail miserably due to root.hpa pointing at garbage. > > Note, kvm_mmu_reload() can return -EIO and thus trigger the WARN on -EIO > in kvm_vcpu_pre_fault_memory(), but all such paths also WARN, i.e. the > WARN isn't user-triggerable and won't run afoul of warn-on-panic because > the kernel would already be panicking. > > [...] Applied to kvm-x86 fixes, thanks! [1/1] KVM: x86/mmu: Check that root is valid/loaded when pre-faulting SPTEs https://github.com/kvm-x86/linux/commit/28cec7f08b8b -- https://github.com/kvm-x86/linux/tree/next