lkml.org 
[lkml]   [2021]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v1 1/1] x86: Skip WBINVD instruction for VM guest
From
Date
Hi,

On 11/16/21 8:24 AM, Borislav Petkov wrote:
> 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.
>

Ok. I will change it in next version.

--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer

\
 
 \ /
  Last update: 2021-11-16 17:38    [W:0.113 / U:1.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site