Messages in this thread | | | From | Thomas Hellström (VMware) <> | Subject | [PATCH v3 0/4] Add support for updated vmware hypercall instruction | Date | Wed, 28 Aug 2019 10:03:49 +0200 |
| |
Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: <x86@kernel.org>
VMware has started using "vmcall" / "vmmcall" instead of an inl instruction for the "backdoor" interface. This series detects support for those instructions. Outside of the platform code we use the "ALTERNATIVES" self-patching mechanism similarly to how this is done with KVM. Unfortunately we need two new x86 CPU feature flags for this, since we need the default instruction to be "inl". IIRC the vmmouse driver is used by other virtualization solutions than VMware, and those might break if they encounter any of the other instructions.
v2: - Address various style review comments - Use mnemonics instead of bytecode in the ALTERNATIVE_2 macros - Use vmcall / vmmcall also for the High-Bandwidth port calls - Change the %edx argument to what vmcall / vmmcall expect (flags instead of port number). The port number is added in the default ALTERNATIVE_2 path. - Ack to merge the vmmouse patch from Dmitry. - Drop license update for now. Will get back with a freestanding patch.
v3: - Address more style review comments - Improve on documentation - Remove an unnecessarily added include - Ack to merge the vmwgfx patch from Dave.
| |