projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eedcac
)
KVM: x86: sgdt and sidt are not privilaged
author
Nadav Amit
<namit@cs.technion.ac.il>
Mon, 2 Jun 2014 15:34:06 +0000
(18:34 +0300)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 18 Jun 2014 15:46:17 +0000
(17:46 +0200)
The SGDT and SIDT instructions are not privilaged, i.e. they can be executed
with CPL>0.
Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index 7e4a45cab4001782847eff8f65f4abc54cdfb619..a16bf225cab01441b810d5e1147379bd17abdc4d 100644
(file)
--- a/
arch/x86/kvm/emulate.c
+++ b/
arch/x86/kvm/emulate.c
@@
-3642,8
+3642,8
@@
static const struct opcode group6[] = {
};
static const struct group_dual group7 = { {
- II(Mov | DstMem
| Priv,
em_sgdt, sgdt),
- II(Mov | DstMem
| Priv,
em_sidt, sidt),
+ II(Mov | DstMem
,
em_sgdt, sgdt),
+ II(Mov | DstMem
,
em_sidt, sidt),
II(SrcMem | Priv, em_lgdt, lgdt),
II(SrcMem | Priv, em_lidt, lidt),
II(SrcNone | DstMem | Mov, em_smsw, smsw), N,