KVM: SVM: Activate nested state only when guest state is complete
commit06fc7772690dec2a0e3814633357babf8f63af41
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 19 Feb 2010 15:23:07 +0000 (19 16:23 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:34:25 +0000 (25 12:34 +0300)
tree77f08440830d67e120df705af2e2251241d70fba
parent88ab24adc7142506c8583ac36a34fa388300b750
KVM: SVM: Activate nested state only when guest state is complete

Certain functions called during the emulated world switch
behave differently when the vcpu is running nested. This is
not the expected behavior during a world switch emulation.
This patch ensures that the nested state is activated only
if the vcpu is completly in nested state.

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