lkml.org 
[lkml]   [2022]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v2] x86/mce: work around an erratum on fast string copy instructions.
    On Fri, Feb 18, 2022 at 8:14 AM Borislav Petkov <bp@alien8.de> wrote:
    >
    > On Fri, Feb 18, 2022 at 08:03:24AM -0800, Jue Wang wrote:
    > > Since MSR_IA32_MISC_ENABLE is not a MCA register, I wonder if we want
    > > to mix its read/write with the injected MCE code.
    > >
    > > I was a bit concerned about potential race with mce-inject and the
    > > read/write to MSR_IA32_MISC_ENABLE.
    >
    > It won't inject anything:
    >
    > offset = msr_to_offset(msr);
    > if (offset < 0)
    > ret = 0;
    >
    Thanks.

    My concern was that here returns 0 instead the value read from the msr.

    Maybe this cannot happen?
    >
    > Besides, you need to use those routines due to EX_TYPE_{RD,WR}MSR_IN_MCE
    >
    > --
    > Regards/Gruss,
    > Boris.
    >
    > https://people.kernel.org/tglx/notes-about-netiquette

    \
     
     \ /
      Last update: 2022-02-18 17:22    [W:8.344 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site