KVM: x86/mmu: Avoid memslot lookup in page_fault_handle_page_track
authorDavid Matlack <dmatlack@google.com>
Fri, 13 Aug 2021 20:35:02 +0000 (20:35 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Oct 2021 07:44:53 +0000 (03:44 -0400)
commit888104138cb8e88c3825efc07b0000c195346387
tree4a4d0c649d43ea4d4cdc106696dde8d685a19a28
parente710c5f6be0eb36f8f2e98efbc02f1b31021c29d
KVM: x86/mmu: Avoid memslot lookup in page_fault_handle_page_track

Now that kvm_page_fault has a pointer to the memslot it can be passed
down to the page tracking code to avoid a redundant slot lookup.

No functional change intended.

Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20210813203504.2742757-5-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_page_track.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/page_track.c