From: Avi Kivity <avi@xxxxxxxxxx> This makes it pick the correct register size. Signed-off-by: Avi Kivity <avi@xxxxxxxxxx> diff --git a/lib/x86/processor.h b/lib/x86/processor.h index c348808..d0ace9e 100644 --- a/lib/x86/processor.h +++ b/lib/x86/processor.h @@ -191,7 +191,7 @@ static inline u16 sldt(void) return val; } -static inline void ltr(unsigned val) +static inline void ltr(u16 val) { asm volatile ("ltr %0" : : "rm"(val)); } -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html