Re: [PATCH v2 0/2] KVM: x86/mmu: Fill memory_fault for unresolvable guest page faults
From: Sean Christopherson
Date: Fri Oct 02 2026 - 17:09:27 EST
On Sun, 20 Sep 2026 07:24:57 +0000, mike.malyshev@xxxxxxxxx wrote:
> From: Mikhail Malyshev <mike.malyshev@xxxxxxxxx>
>
> When KVM cannot resolve a guest page fault, kvm_handle_error_pfn() returns
> a bare -EFAULT. KVM_CAP_MEMORY_FAULT_INFO documents the opposite: that
> KVM_RUN fills kvm_run.memory_fault "if KVM cannot resolve a guest page
> fault VM-Exit, e.g. if there is a valid memslot but no backing VMA for the
> corresponding host virtual address".
>
> [...]
Applied to kvm-x86 mmu, thanks!
[1/2] KVM: x86/mmu: Report a memory fault exit when the fault handler EFAULTs
https://github.com/kvm-x86/linux/commit/64f1cf288440
[2/2] KVM: x86/mmu: Convert can't-happen fault path EFAULTs to KVM_BUG_ON() + -EIO
https://github.com/kvm-x86/linux/commit/98a843669196
--
https://github.com/kvm-x86/linux/tree/next