Commit a0610ddf authored by S.Caglar Onur's avatar S.Caglar Onur Committed by Linus Torvalds

[PATCH] kvm: Fix asm constraint for lldt instruction

lldt does not accept immediate operands, which "g" allows.
Signed-off-by: default avatarS.Caglar Onur <caglar@pardus.org.tr>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 96958231
......@@ -558,7 +558,7 @@ static inline void load_gs(u16 sel)
#ifndef load_ldt
static inline void load_ldt(u16 sel)
{
asm ("lldt %0" : : "g"(sel));
asm ("lldt %0" : : "rm"(sel));
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment