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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a0610ddf6be6465049a5da448d7e6c5e821240e6;p=openwrt%2Fstaging%2Fblogic.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 2db1ca4c6800..4ccb343b9aff 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