KVM: SVM: Sync cr0 and cr3 to kvm state before nested handling
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 22 Apr 2010 10:33:09 +0000 (12:33 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:19:20 +0000 (12:19 +0300)
commit2be4fc7a02c368dcfda83a386a5101c211b9535e
treec43bafd91cf461f51384a6e904604181235e71b8
parent2041a06a50a2ef4062c8454482aa06e25f6cccde
KVM: SVM: Sync cr0 and cr3 to kvm state before nested handling

This patch syncs cr0 and cr3 from the vmcb to the kvm state
before nested intercept handling is done. This allows to
simplify the vmexit path.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c