git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KVM: x86: emulating RDPID failure shall return #UD rather than #GP
[sfrench/cifs-2.6.git]
/
arch
/
x86
/
kvm
/
emulate.c
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index 2f6510de6b0c037ae969aa8f992b5814be694127..85111cd0adcd0bae3ba808440bad4af1cf01188d 100644
(file)
--- a/
arch/x86/kvm/emulate.c
+++ b/
arch/x86/kvm/emulate.c
@@
-3606,7
+3606,7
@@
static int em_rdpid(struct x86_emulate_ctxt *ctxt)
u64 tsc_aux = 0;
if (ctxt->ops->get_msr(ctxt, MSR_TSC_AUX, &tsc_aux))
- return emulate_
gp(ctxt, 0
);
+ return emulate_
ud(ctxt
);
ctxt->dst.val = tsc_aux;
return X86EMUL_CONTINUE;
}