On Wed, Mar 11, 2026 at 12:34:59PM +0100, Magnus Kulke wrote:
> - Hardcoded max_leaf was not accurate. We query leaf 0x0 and 0x80000000 to
>   get the actual max leaves
> 
> - On all 0 zeroes on leaf 0x0d, we register 0-63 subleaves with zeros
>   indicating XSAVE is disabled
> 
> - Subleaf 0 was hardcoded, so the Hypervisor returned defaults for other
>   subleaves
> 
> - Subleaf 0 war hardcoded, so we were passing 0 instead of actual subleaf
>   when adding entries. We now pass the correct subleaf value to
>   add_cpuid_entry()
> 
> - Leaves 0x04,0x07,0d,0f,10 weren't marked as subleaf-specific
> 
> Signed-off-by: Magnus Kulke <[email protected]>

I didn't check whether the changes matched what the manuals say, but if
things were not working before but are working now, then I guess the
changes are correct.

Acked-by: Wei Liu <[email protected]>

Reply via email to