<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CPU cacheline size of 0 can be returned by CPUID leaf 0x80000006 in some virtual machines"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87913#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CPU cacheline size of 0 can be returned by CPUID leaf 0x80000006 in some virtual machines"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87913">bug 87913</a>
              from <span class="vcard"><a class="email" href="mailto:leonid.shatz@ravellosystems.com" title="Leonid Shatz <leonid.shatz@ravellosystems.com>"> <span class="fn">Leonid Shatz</span></a>
</span></b>
        <pre>Sorry, the correct code would be something like:

   if (regs[0] >= 0x80000006) {
        cpuid(0x80000006, regs2);
+       if ((regs2[2] & 0xFF) > 0)
            util_cpu_caps.cacheline = regs2[2] & 0xFF;
    }</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>