KVM: SVM: handle errors in vmrun emulation path appropriatly
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 7 Aug 2009 09:49:43 +0000 (11:49 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:32 +0000 (10:46 +0300)
If nested svm fails to load the msrpm the vmrun succeeds with the old
msrpm which is not correct. This patch changes the logic to roll back
to host mode in case the msrpm cannot be loaded.

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

Simple merge