Commit df24f7b9 authored by S.Caglar Onur's avatar S.Caglar Onur Committed by Greg Kroah-Hartman

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>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9edec60f
......@@ -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