]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Optimize is_last_gpte()
authorAvi Kivity <avi@redhat.com>
Wed, 12 Sep 2012 17:46:56 +0000 (20:46 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 20 Sep 2012 10:00:09 +0000 (13:00 +0300)
commit4ffe81264e46078812b685050004ad76ea7de89e
treec277c3daf5ba0ec856e582025cbc27ccab4e6ec9
parentb63b1fe452f7cf77457dd050b9c8addee3b7bf35
KVM: MMU: Optimize is_last_gpte()

Instead of branchy code depending on level, gpte.ps, and mmu configuration,
prepare everything in a bitmap during mode changes and look it up during
runtime.

Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h
arch/x86/kvm/paging_tmpl.h