]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm: Fix asm constraint for lldt instruction
authorS.Caglar Onur <caglar@pardus.org.tr>
Mon, 12 Feb 2007 08:54:34 +0000 (00:54 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:30 +0000 (10:50 -0800)
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/kvm/kvm.h

index 2db1ca4c68008b9f567172cb7741b54326ef4c66..4ccb343b9aff962787ea7f1c3867cdb332b9b6fa 100644 (file)
@@ -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