Messages in this thread | | | Date | Tue, 16 Nov 2021 17:24:33 +0100 | From | Borislav Petkov <> | Subject | Re: [PATCH v1 1/1] x86: Skip WBINVD instruction for VM guest |
| |
On Mon, Nov 15, 2021 at 04:50:27PM -0800, Kuppuswamy Sathyanarayanan wrote: > -#define ACPI_FLUSH_CPU_CACHE() wbinvd() > +#define ACPI_FLUSH_CPU_CACHE() \ > +do { \ > + if (!boot_cpu_has(X86_FEATURE_HYPERVISOR)) \
cpu_feature_enabled()
If you wanna query a X86_FEATURE_* bit, from now on, use only this function.
-- Regards/Gruss, Boris.
https://people.kernel.org/tglx/notes-about-netiquette
| |