KVM: SVM: Sync efer back into nested vmcb
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 27 Jul 2010 16:14:20 +0000 (18:14 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:03 +0000 (10:50 +0200)
commit3f6a9d1693deaeef28d98109bc92c98dd94a8523
treee7dbbef3b591eb7edc502ae7af68403b4bd13063
parent19ada5c4b6170bbc7ac4f2f38dba0068fdc7755a
KVM: SVM: Sync efer back into nested vmcb

This patch fixes a bug in a nested hypervisor that heavily
switches between real-mode and long-mode. The problem is
fixed by syncing back efer into the guest vmcb on emulated
vmexit.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c