Skip to content

Conversation

@anirudhrb
Copy link

Remove hardcoding of CPU extended state subleaves in the CPUID page in the IGVM file. Include only the 0x0 and 0x1 subleaves.

For the remaining subleaves, the VMM will query and import only the supported subleaves.

Hardcoding some unsupported leaves with zeroes can sometimes lead to the PSP rejecting the CPUID page. One instance we've observed of this is when AVX512 is supported by the hardware the PSP doesn't allow setting zeroes for the corresponding subleaves even if AVX512 is not exposed to the VM. However, the PSP is okay if we just omit those subleaves in our CPUID page.

Remove hardcoding of CPU extended state subleaves in the CPUID page in
the IGVM file. Include only the 0x0 and 0x1 subleaves.

For the remaining subleaves, the VMM will query and import only the
supported subleaves.

Hardcoding some unsupported leaves with zeroes can sometimes lead to the
PSP rejecting the CPUID page. One instance we've observed of this is
when AVX512 is supported by the hardware the PSP doesn't allow setting
zeroes for the corresponding subleaves even if AVX512 is not exposed to
the VM. However, the PSP is okay if we just omit those subleaves in our
CPUID page.

Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
@jinankjain
Copy link
Contributor

@MahatiC can you please verify if this does not break any of your existing workflows?

@MahatiC
Copy link
Member

MahatiC commented Nov 11, 2024

@jinankjain Thanks, will merge this once I do a quick check

@KenGordon KenGordon self-requested a review November 12, 2024 07:31
Copy link

@KenGordon KenGordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please withdraw this. We can’t do it this way. It breaks in some of the circumstances. If you are looking at the problem this tries to solve please talk to me and Takuro. There is a plan to fix the underlying problem and then we need to debug the “proper” scheme involving the CPUID_XF page. There is no point two sets of people doing the same thing.

@anirudhrb anirudhrb closed this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants