Skip to content

Commit

Permalink
[PATCH] kvm: Fix asm constraint for lldt instruction
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
S.Caglar Onur authored and Linus Torvalds committed Feb 12, 2007
1 parent 9695823 commit a0610dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/kvm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a0610dd

Please sign in to comment.