KVM: SVM: Check for nested vmrun intercept before emulating vmrun
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 2 Aug 2010 14:46:44 +0000 (16:46 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:32 +0000 (10:50 +0200)
commit52c65a30a5c6f31cd66dba57c22d18cafa5e327f
treea2bb3effc2bfac345335bfecbdc9be52dafc7c00
parent4132779b1718f066ec2d06a71c8958039865cd49
KVM: SVM: Check for nested vmrun intercept before emulating vmrun

This patch lets the nested vmrun fail if the L1 hypervisor
has not intercepted vmrun. This fixes the "vmrun intercept
check" unit test.

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