]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Speed up slot_rmap_walk_next for sparsely populated rmaps
authorVipin Sharma <vipinsh@google.com>
Mon, 2 May 2022 22:03:47 +0000 (22:03 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 May 2022 13:51:45 +0000 (09:51 -0400)
commit60349e356e472cd4e7fae36254f8cf4c7debdab3
tree3b0ff5e8cb74eb99f0e4f306666c05cb6a68ab0e
parentdec33bc8507ea63e3feef64c8193709f70761da7
KVM: x86/mmu: Speed up slot_rmap_walk_next for sparsely populated rmaps

Avoid calling handlers on empty rmap entries and skip to the next non
empty rmap entry.

Empty rmap entries are noop in handlers.

Signed-off-by: Vipin Sharma <vipinsh@google.com>
Suggested-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220502220347.174664-1-vipinsh@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c