lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 10 May 2023 19:15:50 +0000
From:   "Luck, Tony" <tony.luck@...el.com>
To:     "Hansen, Dave" <dave.hansen@...el.com>,
        Ricardo Neri <ricardo.neri-calderon@...ux.intel.com>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-tip-commits@...r.kernel.org" 
        <linux-tip-commits@...r.kernel.org>,
        "Peter Zijlstra (Intel)" <peterz@...radead.org>,
        "Brown, Len" <len.brown@...el.com>, Borislav Petkov <bp@...e.de>,
        "x86@...nel.org" <x86@...nel.org>
Subject: RE: [tip: perf/core] x86/cpu: Add helper function to get the type of
 the current hybrid CPU

> I read the SDM again. It seems that cpuid_eax(0x0000001a) already returns
> 0 when the leaf does not exist.

Quick correction. SDM says that read of an unimplemented leaf will return 0 in all registers
if the leaf you try to read is not the highest one. But if you try to read a leaf higher than the
highest implemented on, then CPUID returns data from the highest implemented leaf.

E.g. my CLX system only goes up to leaf 0x16. So, on my system, cpuid_eax(0x0000001a)
would return 0x00000ce4

-Tony

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ