• Sean Christopherson's avatar
    KVM: x86/mmu: Expand and clean up page fault stats · 1075d41e
    Sean Christopherson authored
    Expand and clean up the page fault stats.  The current stats are at best
    incomplete, and at worst misleading.  Differentiate between faults that
    are actually fixed vs those that result in an MMIO SPTE being created,
    track faults that are spurious, faults that trigger emulation, faults
    that that are fixed in the fast path, and last but not least, track the
    number of faults that are taken.
    
    Note, the number of faults that require emulation for write-protected
    shadow pages can roughly be calculated by subtracting the number of MMIO
    SPTEs created from the overall number of faults that trigger emulation.
    Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
    Message-Id: <20220423034752.1161007-10-seanjc@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    1075d41e
x86.c 342 KB