Messages in this thread | ![/](/images/icornerl.gif) | | Date | Mon, 8 Apr 2024 18:25:05 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH 1/4] x86/cpu: Add and use new CPUID region helper |
| |
On Thu, Apr 04, 2024 at 11:04:49AM +0200, Jürgen Groß wrote: > Aren't you missing "width &= 0xff;" here? get_cpuid_region_leaf() doesn't > truncate the returned value, which has the linear address width at bits 8-15.
Yeah.
Other than that, the intention looks ok as it documents what that code magic was.
Thx.
-- Regards/Gruss, Boris.
https://people.kernel.org/tglx/notes-about-netiquette
| ![\](/images/icornerr.gif) |