All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: x86 emulator mark VMMCALL and LMSW as privileged
@ 2010-03-03 15:53 Gleb Natapov
  2010-03-07  8:45 ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: Gleb Natapov @ 2010-03-03 15:53 UTC (permalink / raw)
  To: mtosatti, avi; +Cc: kvm

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>
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index 3d2e115..3af63d2 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -363,9 +363,9 @@ static u32 group_table[] = {
 
 static u32 group2_table[] = {
 	[Group7*8] =
-	SrcNone | ModRM | Priv, 0, 0, SrcNone | ModRM,
+	SrcNone | ModRM | Priv, 0, 0, SrcNone | ModRM | Priv,
 	SrcNone | ModRM | DstMem | Mov, 0,
-	SrcMem16 | ModRM | Mov, 0,
+	SrcMem16 | ModRM | Mov | Priv, 0,
 	[Group9*8] =
 	0, 0, 0, 0, 0, 0, 0, 0,
 };
--
			Gleb.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-07  8:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-03 15:53 [PATCH] KVM: x86 emulator mark VMMCALL and LMSW as privileged Gleb Natapov
2010-03-07  8:45 ` Avi Kivity
2010-03-07  8:46   ` Gleb Natapov
2010-03-07  8:52     ` Avi Kivity
2010-03-07  8:56       ` Gleb Natapov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.