From: S.Caglar Onur Date: Mon, 12 Feb 2007 08:54:34 +0000 (-0800) Subject: [PATCH] kvm: Fix asm constraint for lldt instruction X-Git-Tag: v2.6.21-rc1~274^2~61 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a0610ddf6be6465049a5da448d7e6c5e821240e6;p=linux-2.6-omap-h63xx.git [PATCH] kvm: Fix asm constraint for lldt instruction lldt does not accept immediate operands, which "g" allows. Signed-off-by: S.Caglar Onur Signed-off-by: Avi Kivity Cc: Ingo Molnar Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 2db1ca4c680..4ccb343b9af 100644 --- a/drivers/kvm/kvm.h +++ b/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