]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4d13cd809ed3b8a1f22bb2986e1d2247092fcb9
tree9489d4399ff3828352f9f8053426938e3d3168a7
parent78285b25be51e5ad20a0df156ddbec9b07ff0097
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