aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-03-03 10:53:05 -0500
committerAvi Kivity <avi@redhat.com>2010-05-17 05:15:18 -0400
commit835e6b80478e59820cff127adba3e518ae5a43f5 (patch)
tree451afd40385adb3e5c8e5e65abeab6c8a5e271e5
parentf71385383fb86246ab3c69cc17a09ef9883590d8 (diff)
KVM: x86 emulator mark VMMCALL and LMSW as privileged
LMSW is present in both group tables. It was marked privileged only in one of them. Intel analog of VMMCALL is already marked privileged. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--arch/x86/kvm/emulate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index 5b6794adaa2e..2832a8c07c6a 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -362,9 +362,9 @@ static u32 group_table[] = {
362 362
363static u32 group2_table[] = { 363static u32 group2_table[] = {
364 [Group7*8] = 364 [Group7*8] =
365 SrcNone | ModRM | Priv, 0, 0, SrcNone | ModRM, 365 SrcNone | ModRM | Priv, 0, 0, SrcNone | ModRM | Priv,
366 SrcNone | ModRM | DstMem | Mov, 0, 366 SrcNone | ModRM | DstMem | Mov, 0,
367 SrcMem16 | ModRM | Mov, 0, 367 SrcMem16 | ModRM | Mov | Priv, 0,
368 [Group9*8] = 368 [Group9*8] =
369 0, 0, 0, 0, 0, 0, 0, 0, 369 0, 0, 0, 0, 0, 0, 0, 0,
370}; 370};