diff options
author | Roedel, Joerg <Joerg.Roedel@amd.com> | 2010-05-06 11:38:43 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-19 10:36:39 +0200 |
commit | b69e8caef5b190af48c525f6d715e7b7728a77f6 (patch) | |
tree | 102d0728a1c8ae0b698e6f746cd40a67dfc2db94 /arch/x86/include | |
parent | KVM: SVM: Don't allow nested guest to VMMCALL into host (diff) | |
download | linux-b69e8caef5b190af48c525f6d715e7b7728a77f6.tar.xz linux-b69e8caef5b190af48c525f6d715e7b7728a77f6.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>
Diffstat (limited to 'arch/x86/include')
0 files changed, 0 insertions, 0 deletions