diff options
author | Roedel, Joerg <Joerg.Roedel@amd.com> | 2010-05-06 11:38:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-05 11:16:15 -0700 |
commit | f7461bdc19bb04af2bd14b2936a485bbcfd9fb02 (patch) | |
tree | 18e93a0c13e3e32f58b64abfa27ab97f5bbdb060 /net/unix/af_unix.c | |
parent | 36d26d70df7a96e2c906e1bf126afe975cbe02fa (diff) | |
download | kernel-crypto-f7461bdc19bb04af2bd14b2936a485bbcfd9fb02.tar.gz kernel-crypto-f7461bdc19bb04af2bd14b2936a485bbcfd9fb02.tar.xz kernel-crypto-f7461bdc19bb04af2bd14b2936a485bbcfd9fb02.zip |
KVM: x86: Inject #GP with the right rip on efer writes
This patch fixes a bug in the KVM efer-msr write path. If a
guest writes to a reserved efer bit the set_efer function
injects the #GP directly. The architecture dependent wrmsr
function does not see this, assumes success and advances the
rip. This results in a #GP in the guest with the wrong rip.
This patch fixes this by reporting efer write errors back to
the architectural wrmsr function.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit b69e8caef5b190af48c525f6d715e7b7728a77f6)
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions