summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/pvclock.c
diff options
context:
space:
mode:
authorRoedel, Joerg <Joerg.Roedel@amd.com>2010-05-06 11:38:43 +0200
committerAvi Kivity <avi@redhat.com>2010-05-19 11:36:39 +0300
commitb69e8caef5b190af48c525f6d715e7b7728a77f6 (patch)
tree102d0728a1c8ae0b698e6f746cd40a67dfc2db94 /arch/x86/kernel/pvclock.c
parent0d945bd9351199744c1e89d57a70615b6ee9f394 (diff)
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/kernel/pvclock.c')
0 files changed, 0 insertions, 0 deletions