]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Avoid memslot lookup in rmap_add
authorDavid Matlack <dmatlack@google.com>
Fri, 13 Aug 2021 20:35:03 +0000 (20:35 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Oct 2021 07:44:56 +0000 (03:44 -0400)
commitb9aec44eab2353c816488f1c0e2ab9fd0058266b
tree60e069cbb56f1546987ed806a76fd302e2c95b41
parent796f665a24d16aa03d2aff73d4d281a30caacb39
KVM: x86/mmu: Avoid memslot lookup in rmap_add

Avoid the memslot lookup in rmap_add, by passing it down from the fault
handling code to mmu_set_spte and then to rmap_add.

No functional change intended.

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