Skip to content

Commit fbcfb8f

Browse files
samitolvanenIngo Molnar
authored andcommitted
x86/cpu/vmware: Use the full form of INL in VMWARE_PORT
LLVM's assembler doesn't accept the short form INL instruction: inl (%%dx) but instead insists on the output register to be explicitly specified: <inline asm>:1:7: error: invalid operand for instruction inl (%dx) ^ LLVM ERROR: Error parsing inline asm Use the full form of the instruction to fix the build. Signed-off-by: Sami Tolvanen <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Reviewed-by: Kees Cook <[email protected]> Acked-by: Thomas Hellstrom <[email protected]> Cc: [email protected] Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: "VMware, Inc." <[email protected]> Cc: x86-ml <[email protected]> Link: ClangBuiltLinux#734 Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 454de1e commit fbcfb8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/vmware.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#define VMWARE_CMD_VCPU_RESERVED 31
5050

5151
#define VMWARE_PORT(cmd, eax, ebx, ecx, edx) \
52-
__asm__("inl (%%dx)" : \
52+
__asm__("inl (%%dx), %%eax" : \
5353
"=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
5454
"a"(VMWARE_HYPERVISOR_MAGIC), \
5555
"c"(VMWARE_CMD_##cmd), \

0 commit comments

Comments
 (0)