]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit091a00ecd9ddd2de18fa00488cdac44e0cdd7cb0
tree4a4d0c649d43ea4d4cdc106696dde8d685a19a28
parent12a4be8af96ce7adb26e064b0c42961c47642ec7
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