lkml.org 
[lkml]   [2022]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 23/23] x86/process: Reset hardware history in context switch
On Fri, Sep 09, 2022 at 04:12:05PM -0700, Ricardo Neri wrote:

> +void reset_hardware_history(void)
> +{
> + if (!static_cpu_has(X86_FEATURE_HRESET))
> + return;
> +
> + asm volatile("mov %0, %%eax;" __ASM_HRESET "\n" : :
> + "r" (hardware_history_features) : "%rax");
> +}

asm_inline volatile (ALTERNATIVE("", __ASM_HRESET, X86_FEATURE_HRESET)
: : "a" (hardware_history_features) : "memory");

\
 
 \ /
  Last update: 2022-09-27 14:53    [W:0.355 / U:1.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site