]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Fetch guest cr3 from hardware on demand
authorAvi Kivity <avi@redhat.com>
Sun, 5 Dec 2010 16:56:11 +0000 (18:56 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:31:16 +0000 (11:31 +0200)
commitebebf074470273f48277931f2e711f6441040f93
tree84955c55c812dd540cd0c54e5bdf6d3f5bfd08be
parent6b29ea118f8469af2ea3424b4f09cd300c9ceb31
KVM: Fetch guest cr3 from hardware on demand

Instead of syncing the guest cr3 every exit, which is expensince on vmx
with ept enabled, sync it only on demand.

[sheng: fix incorrect cr3 seen by Windows XP]

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/kvm_cache_regs.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c