angler-fishThe Vulnerability History Project

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>
    
commit 6fd01b711bee96ce3356f7b6f370ab708e37504b
+7
+31
+2 -1
+1 -19
expand_less