kvm: mmu: Use fast PF path for access tracking of huge pages when possible
authorJunaid Shahid <junaids@google.com>
Thu, 4 Nov 2021 00:33:59 +0000 (17:33 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Nov 2021 15:56:20 +0000 (10:56 -0500)
commit10c30de0192183034ba1b3014895b7f95d093785
tree9489d4399ff3828352f9f8053426938e3d3168a7
parentc435d4b7badfa791fea2a1a97a07e02e7134a150
kvm: mmu: Use fast PF path for access tracking of huge pages when possible

The fast page fault path bails out on write faults to huge pages in
order to accommodate dirty logging. This change adds a check to do that
only when dirty logging is actually enabled, so that access tracking for
huge pages can still use the fast path for write faults in the common
case.

Signed-off-by: Junaid Shahid <junaids@google.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211104003359.2201967-1-junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c