]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f232f6f9931b8994ba55aef4675621279d0a6ae
tree527e793d02a79cbacc21348aaeda9d67f880dc51
parent6575ca79cdd5ceb43eb7062400c90b98eea4153a
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