On 27.01.2022 08:56, Jan Beulich wrote: > On 27.01.2022 00:30, Andrew Cooper wrote: >> On 20/01/2022 14:17, Jan Beulich wrote: >>> @@ -188,6 +189,10 @@ struct cpuid_policy >>> uint32_t _7a1; >>> struct { DECL_BITFIELD(7a1); }; >>> }; >>> + union { >>> + uint32_t _7b1; >>> + struct { DECL_BITFIELD(7b1); }; >>> + }; >>> }; >>> } feat; >>> >>> >> >> Looking at a related patch I've got, at a minimum, you also need: >> * collect the leaf in generic_identify() > > I'll need to make a patch first to collect 7a1, as it seems. It was > actually 7a1 that I used as a reference, iirc.
Actually that's there, just that I didn't spot it when looking for the "(7, " pattern in cpu/common.c. This form is used only in early_cpu_init(), while generic_identify() uses cpuid_count(0x00000007, ...). All quite inconsistent ... Jan