Skip to content

Commit 9dfb180

Browse files
YustasSwampbp3tk0v
authored andcommitted
x86/vmware: Remove legacy VMWARE_HYPERCALL* macros
No more direct use of these macros should be allowed. The vmware_hypercallX API still uses the new implementation of VMWARE_HYPERCALL macro internally, but it is not exposed outside of the vmware.h. Signed-off-by: Alexey Makhalov <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 86cb654 commit 9dfb180

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

arch/x86/include/asm/vmware.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -279,30 +279,4 @@ unsigned long vmware_hypercall_hb_in(unsigned long cmd, unsigned long in2,
279279
#undef VMW_BP_CONSTRAINT
280280
#undef VMWARE_HYPERCALL
281281

282-
/* The low bandwidth call. The low word of edx is presumed clear. */
283-
#define VMWARE_HYPERCALL \
284-
ALTERNATIVE_2("movw $" __stringify(VMWARE_HYPERVISOR_PORT) ", %%dx; " \
285-
"inl (%%dx), %%eax", \
286-
"vmcall", X86_FEATURE_VMCALL, \
287-
"vmmcall", X86_FEATURE_VMW_VMMCALL)
288-
289-
/*
290-
* The high bandwidth out call. The low word of edx is presumed to have the
291-
* HB and OUT bits set.
292-
*/
293-
#define VMWARE_HYPERCALL_HB_OUT \
294-
ALTERNATIVE_2("movw $" __stringify(VMWARE_HYPERVISOR_PORT_HB) ", %%dx; " \
295-
"rep outsb", \
296-
"vmcall", X86_FEATURE_VMCALL, \
297-
"vmmcall", X86_FEATURE_VMW_VMMCALL)
298-
299-
/*
300-
* The high bandwidth in call. The low word of edx is presumed to have the
301-
* HB bit set.
302-
*/
303-
#define VMWARE_HYPERCALL_HB_IN \
304-
ALTERNATIVE_2("movw $" __stringify(VMWARE_HYPERVISOR_PORT_HB) ", %%dx; " \
305-
"rep insb", \
306-
"vmcall", X86_FEATURE_VMCALL, \
307-
"vmmcall", X86_FEATURE_VMW_VMMCALL)
308282
#endif

0 commit comments

Comments
 (0)