commit | 5225fdf8c8bea4418f69875804584c89a27c170e | [log] [tgz] |
---|---|---|
author | Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp> | Fri Oct 16 17:08:03 2015 +0900 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Oct 16 10:34:02 2015 +0200 |
tree | ab26c260f44204563e5bd685cfb0686128b8eaf1 | |
parent | d8aacf5df86a961923a2c9c547d341d64a9d9f5d [diff] |
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>