diff options
author | Nadav Amit <namit@cs.technion.ac.il> | 2014-06-02 11:34:06 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-18 11:46:17 -0400 |
commit | 606b1c3e87597c2d6c9f3eb833a7251262390295 (patch) | |
tree | 1319dfd6b2a82ac9c7657a09ba41b77a170caee0 /arch/x86/kvm/emulate.c | |
parent | 2eedcac8a97cef43c9c5236398fc8c9d0fd9cc0c (diff) |
KVM: x86: sgdt and sidt are not privilaged
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>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 7e4a45cab400..a16bf225cab0 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -3642,8 +3642,8 @@ static const struct opcode group6[] = { | |||
3642 | }; | 3642 | }; |
3643 | 3643 | ||
3644 | static const struct group_dual group7 = { { | 3644 | static const struct group_dual group7 = { { |
3645 | II(Mov | DstMem | Priv, em_sgdt, sgdt), | 3645 | II(Mov | DstMem, em_sgdt, sgdt), |
3646 | II(Mov | DstMem | Priv, em_sidt, sidt), | 3646 | II(Mov | DstMem, em_sidt, sidt), |
3647 | II(SrcMem | Priv, em_lgdt, lgdt), | 3647 | II(SrcMem | Priv, em_lgdt, lgdt), |
3648 | II(SrcMem | Priv, em_lidt, lidt), | 3648 | II(SrcMem | Priv, em_lidt, lidt), |
3649 | II(SrcNone | DstMem | Mov, em_smsw, smsw), N, | 3649 | II(SrcNone | DstMem | Mov, em_smsw, smsw), N, |