KVM: x86: MMU: Simplify force_pt_level calculation code in FNAME(page_fault)()
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Fri, 16 Oct 2015 08:05:13 +0000 (17:05 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Oct 2015 08:34:00 +0000 (10:34 +0200)
commit5ed5c5c8fdbab889837c9223fc6f4bdaa830879c
treeef7494fb2803fb26097d8fd5d7f28029bb2c86e2
parentcd1872f028556dc0e8424e58413c0268c159383b
KVM: x86: MMU: Simplify force_pt_level calculation code in FNAME(page_fault)()

As a bonus, an extra memory slot search can be eliminated when
is_self_change_mapping is true.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/paging_tmpl.h