]> www.infradead.org Git - nvme.git/commit
KVM: x86/mmu: Account pf_{fixed,emulate,spurious} in callers of "do page fault"
authorSean Christopherson <seanjc@google.com>
Wed, 12 Jun 2024 19:59:06 +0000 (12:59 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Jul 2024 15:17:35 +0000 (11:17 -0400)
commitf5e7f00cf1950c771987778444a6600b5f2d883a
tree3eeca28cc5ef4fde808c1d9cc52975bff303694d
parent5186ec223b68cc5100035d605a730819f774932f
KVM: x86/mmu: Account pf_{fixed,emulate,spurious} in callers of "do page fault"

Move the accounting of the result of kvm_mmu_do_page_fault() to its
callers, as only pf_fixed is common to guest page faults and async #PFs,
and upcoming support KVM_PRE_FAULT_MEMORY won't bump _any_ stats.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/mmu_internal.h