Skip to content

Commit 606b1c3

Browse files
anadavbonzini
authored andcommitted
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 <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 2eedcac commit 606b1c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kvm/emulate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3642,8 +3642,8 @@ static const struct opcode group6[] = {
36423642
};
36433643

36443644
static const struct group_dual group7 = { {
3645-
II(Mov | DstMem | Priv, em_sgdt, sgdt),
3646-
II(Mov | DstMem | Priv, em_sidt, sidt),
3645+
II(Mov | DstMem, em_sgdt, sgdt),
3646+
II(Mov | DstMem, em_sidt, sidt),
36473647
II(SrcMem | Priv, em_lgdt, lgdt),
36483648
II(SrcMem | Priv, em_lidt, lidt),
36493649
II(SrcNone | DstMem | Mov, em_smsw, smsw), N,

0 commit comments

Comments
 (0)