Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDX VMs with hyperthreading getting incorrect thread count #481

Closed
vibhutet opened this issue Dec 13, 2024 · 1 comment
Closed

TDX VMs with hyperthreading getting incorrect thread count #481

vibhutet opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working tdx TDX specific bugs or features

Comments

@vibhutet
Copy link
Contributor

vibhutet commented Dec 13, 2024

In Windows TDX VMs, the powershell command gwmi Win32_Processor | fl * is yeilding incorrect values for ThreadCount and NumberOfEnabledCore when hyperthreading is enabled.
The topology builder needs a correction in how vps_per_socket are determined from Cpuid leaf Cache Parameters (0x4). Additionally, the kernel forwards most CPUID intercepts received in #VE handler to the user mode without any particular handling. Hence the topology builder is unable to determine the topology from Cpuid leaf Extended Topology Enumeration (0xB).

@vibhutet
Copy link
Contributor Author

Should the #VE handler be updated to retrieve the topology from ExtendedTopologyEnumeration?

@cperezvargas cperezvargas added bug Something isn't working tdx TDX specific bugs or features labels Dec 20, 2024
smalis-msft pushed a commit that referenced this issue Jan 7, 2025
Implements issue: [TDX VMs with hyperthreading getting incorrect thread
count #481](#481)
smalis-msft pushed a commit to smalis-msft/openvmm that referenced this issue Jan 8, 2025
…rosoft#532)

Implements issue: [TDX VMs with hyperthreading getting incorrect thread
count microsoft#481](microsoft#481)
smalis-msft added a commit that referenced this issue Jan 8, 2025
…culation (#532) (#629)

Implements issue: [TDX VMs with hyperthreading getting incorrect thread
count #481](#481)

Co-authored-by: Tejaswini Vibhute <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tdx TDX specific bugs or features
Projects
None yet
Development

No branches or pull requests

2 participants