Message ID | 20211008212447.2055660-2-jmattson@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Regression test for L1 LDTR persistence bug | expand |
diff --git a/lib/x86/processor.h b/lib/x86/processor.h index eaf24d491499..fe5add548261 100644 --- a/lib/x86/processor.h +++ b/lib/x86/processor.h @@ -443,7 +443,7 @@ static inline void sidt(struct descriptor_table_ptr *ptr) asm volatile ("sidt %0" : "=m"(*ptr)); } -static inline void lldt(unsigned val) +static inline void lldt(u16 val) { asm volatile ("lldt %0" : : "rm"(val)); }
The lldt instruction takes an r/m16 operand. Fixes: 7d36db351752 ("Initial commit from qemu-kvm.git kvm/test/") Signed-off-by: Jim Mattson <jmattson@google.com> --- lib/x86/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)