KVM: VMX: Simplify pdptr and cr3 management
authorAvi Kivity <avi@redhat.com>
Sun, 31 May 2009 15:41:29 +0000 (18:41 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:46 +0000 (08:32 +0300)
commit8f5d549f028056d6ad6044f2d9e27ecf361d955e
tree86575599cd4427a6d22e051c021f2529a36e2bf7
parent2d84e993a8947dbeb6b416555940d97522330846
KVM: VMX: Simplify pdptr and cr3 management

Instead of reading the PDPTRs from memory after every exit (which is slow
and wrong, as the PDPTRs are stored on the cpu), sync the PDPTRs from
memory to the VMCS before entry, and from the VMCS to memory after exit.
Do the same for cr3.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c