lkml.org 
[lkml]   [2015]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] x86, fpu: correct XSAVE xstate size calculation
    Here's a correction about what we do today, and it's an important point.
    The code I was ripping out in the patch was *really* just for the
    XSAVES/compacted case, does *NOT* do anything today since we've disabled
    XSAVES.

    So perhaps the title here should be:

    [PATCH] x86, fpu: correct XSAVES xstate size calculation

    /* Option 1, what we have today */

    if (!cpu_has_xsaves) {
    cpuid(0xD0, 0, &total_blob_size, ...);
    return;
    }
    /*
    * This breaks if offset[i]+size[i] != offset[i+1]
    * or if alignment is in play. Silly hardware breaks
    * this today.
    */
    for (i = 0; i < nr_xstates; i++) {
    if (!enabled_xstate(i))
    continue;
    total_blob_size += xstate_sizes[i];
    }



    \
     
     \ /
      Last update: 2015-08-06 18:21    [W:4.951 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site