diff options
author | S.Caglar Onur <caglar@pardus.org.tr> | 2007-02-12 00:54:34 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 09:48:40 -0800 |
commit | a0610ddf6be6465049a5da448d7e6c5e821240e6 (patch) | |
tree | a0554e41c4536b7c7d774a43f3e7d864f87de7aa /drivers/kvm/kvm.h | |
parent | 96958231cea5985e32db2ae1125ec20483e3556b (diff) | |
download | op-kernel-dev-a0610ddf6be6465049a5da448d7e6c5e821240e6.zip op-kernel-dev-a0610ddf6be6465049a5da448d7e6c5e821240e6.tar.gz |
[PATCH] kvm: Fix asm constraint for lldt instruction
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>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 2db1ca4..4ccb343 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 |