]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/x86/kvm/mmu/mmu.c
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)
commit6fd01b711bee96ce3356f7b6f370ab708e37504b
treec277c3daf5ba0ec856e582025cbc27ccab4e6ec9
parent13d22b6aebb000aeaf137862c6c0e0c4d138d798
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