KVM: x86: MMU: Eliminate an extra memory slot search in mapping_level()
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Fri, 16 Oct 2015 08:08:03 +0000 (17:08 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Oct 2015 08:34:02 +0000 (10:34 +0200)
commit5225fdf8c8bea4418f69875804584c89a27c170e
treeab26c260f44204563e5bd685cfb0686128b8eaf1
parentd8aacf5df86a961923a2c9c547d341d64a9d9f5d
KVM: x86: MMU: Eliminate an extra memory slot search in mapping_level()

Calling kvm_vcpu_gfn_to_memslot() twice in mapping_level() should be
avoided since getting a slot by binary search may not be negligible,
especially for virtual machines with many memory slots.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
This page took 0.024655 seconds and 5 git commands to generate.