]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: move CR3/PDPTR update to vmx_set_cr3
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 26 Oct 2009 18:48:33 +0000 (16:48 -0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:22 +0000 (09:32 +0200)
commit4a0179159ad2f367f4a6438c1a19301e826e2a64
tree1c7b1d315b9e186b286843c30c54ca8c70f168c0
parenta39fdd14da830ca35a1cbed3f4eac4a74c4404f3
KVM: VMX: move CR3/PDPTR update to vmx_set_cr3

GUEST_CR3 is updated via kvm_set_cr3 whenever CR3 is modified from
outside guest context. Similarly pdptrs are updated via load_pdptrs.

Let kvm_set_cr3 perform the update, removing it from the vcpu_run
fast path.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Acked-by: Acked-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c