mirror of https://gitee.com/openkylin/linux.git
[PATCH] kvm: Fix asm constraint for lldt instruction
lldt does not accept immediate operands, which "g" allows. Signed-off-by: S.Caglar Onur <caglar@pardus.org.tr> Signed-off-by: Avi Kivity <avi@qumranet.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
96958231ce
commit
a0610ddf6b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue