lkml.org 
[lkml]   [2022]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH Part2 v6 06/49] x86/sev: Add helper functions for RMPUPDATE and PSMASH instruction
    From
    On 6/28/22 10:57, Kalra, Ashish wrote:
    > + /*
    > + * RMP table entry format is not architectural and it can vary by processor and
    > + * is defined by the per-processor PPR. Restrict SNP support on the known CPU
    > + * model and family for which the RMP table entry format is currently defined for.
    > + */
    > + if (family != 0x19 || model > 0xaf)
    > + goto nosnp;
    > +
    >
    > This way SNP will only be enabled specifically on the platforms for which this RMP entry
    > format is defined in those processor's PPR. This will work for Milan and Genoa as of now.

    At some point, it would be really nice if the AMD side of things could
    work to kick the magic number habit on these things. This:

    arch/x86/include/asm/intel-family.h

    has been really handy. It lets you do things like

    grep INTEL_FAM6_SKYLAKE arch/x86

    That's a *LOT* more precise than:

    egrep -i '0x5E|94' arch/x86

    \
     
     \ /
      Last update: 2022-06-28 21:06    [W:3.245 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site