Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0610ddf authored by S.Çağlar Onur's avatar S.Çağlar Onur Committed by Linus Torvalds
Browse files

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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