KVM: SVM: Fix fault-rip on vmsave/vmload emulation
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 6 Apr 2011 10:30:03 +0000 (12:30 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:06 +0000 (07:57 -0400)
commite3e9ed3d2c443fd90a04fb7ff231ad53ef087417
tree527e793d02a79cbacc21348aaeda9d67f880dc51
parent92a1f12d2598f429bd8639e21d89305e787115c5
KVM: SVM: Fix fault-rip on vmsave/vmload emulation

When the emulation of vmload or vmsave fails because the
guest passed an unsupported physical address it gets an #GP
with rip pointing to the instruction after vmsave/vmload.
This is a bug and fixed by this patch.

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