[PATCH 2/11] KVM: Fix asm constraint for lldt instruction
From: Avi Kivity
Date: Tue Jan 30 2007 - 09:38:35 EST
From: S.Ã?aÄ?lar Onur <caglar@xxxxxxxxxxxxx>
lldt does not accept immediate operands, which "g" allows.
Signed-off-by: S.Ã?aÄ?lar Onur <caglar@xxxxxxxxxxxxx>
Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>
Index: linux-2.6/drivers/kvm/kvm.h
===================================================================
--- linux-2.6.orig/drivers/kvm/kvm.h
+++ linux-2.6/drivers/kvm/kvm.h
@@ -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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/