]> 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)
commitdd71e4f18afcc9a22ebbef3523a7914976ca54da
tree9489d4399ff3828352f9f8053426938e3d3168a7
parenta61de99411f0d2748b2d8f9609852674549aacb8
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