]> Git Repo - J-linux.git/commitdiff
x86/vmware: Remove legacy VMWARE_HYPERCALL* macros
authorAlexey Makhalov <[email protected]>
Thu, 13 Jun 2024 19:16:49 +0000 (12:16 -0700)
committerBorislav Petkov (AMD) <[email protected]>
Tue, 25 Jun 2024 15:15:48 +0000 (17:15 +0200)
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]
arch/x86/include/asm/vmware.h

index 724c8b9b4b8d050e3a0a289d5d20cd78db698139..d83444f039693d6f7a68f079aa88b1ac8c790f1b 100644 (file)
@@ -279,30 +279,4 @@ unsigned long vmware_hypercall_hb_in(unsigned long cmd, unsigned long in2,
 #undef VMW_BP_CONSTRAINT
 #undef VMWARE_HYPERCALL
 
-/* The low bandwidth call. The low word of edx is presumed clear. */
-#define VMWARE_HYPERCALL                                               \
-       ALTERNATIVE_2("movw $" __stringify(VMWARE_HYPERVISOR_PORT) ", %%dx; " \
-                     "inl (%%dx), %%eax",                              \
-                     "vmcall", X86_FEATURE_VMCALL,                     \
-                     "vmmcall", X86_FEATURE_VMW_VMMCALL)
-
-/*
- * The high bandwidth out call. The low word of edx is presumed to have the
- * HB and OUT bits set.
- */
-#define VMWARE_HYPERCALL_HB_OUT                                                \
-       ALTERNATIVE_2("movw $" __stringify(VMWARE_HYPERVISOR_PORT_HB) ", %%dx; " \
-                     "rep outsb",                                      \
-                     "vmcall", X86_FEATURE_VMCALL,                     \
-                     "vmmcall", X86_FEATURE_VMW_VMMCALL)
-
-/*
- * The high bandwidth in call. The low word of edx is presumed to have the
- * HB bit set.
- */
-#define VMWARE_HYPERCALL_HB_IN                                         \
-       ALTERNATIVE_2("movw $" __stringify(VMWARE_HYPERVISOR_PORT_HB) ", %%dx; " \
-                     "rep insb",                                       \
-                     "vmcall", X86_FEATURE_VMCALL,                     \
-                     "vmmcall", X86_FEATURE_VMW_VMMCALL)
 #endif
This page took 0.04837 seconds and 4 git commands to generate.