KVM: SVM: Fix nested sel_cr0 intercept path with decode-assists
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 18 Apr 2011 09:42:52 +0000 (11:42 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:10 +0000 (07:57 -0400)
commit977b2d03e42e9ea9355d4baddb464810579719bd
tree2385608edeb1be8c4f1903b5cc02dc8093a0ca86
parent0521e4c0bc73aa86152ee4e4bd03724c8a9e1d6b
KVM: SVM: Fix nested sel_cr0 intercept path with decode-assists

This patch fixes a bug in the nested-svm path when
decode-assists is available on the machine. After a
selective-cr0 intercept is detected the rip is advanced
unconditionally. This causes the l1-guest to continue
running with an l2-rip.
This bug was with the sel_cr0 unit-test on decode-assists
capable hardware.

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