On 10/20/22 00:53, Sean Christopherson wrote:
On Thu, Sep 29, 2022, Jim Mattson wrote:
KVM_GET_SUPPORTED_CPUID should only enumerate features that KVM
actually supports. The following ranges of CPUID.8000001EH are reserved
and should be masked off:
EBX[31:16]
ECX[31:11]
LOL, APM is buggy, it says all bits in ECX are reserved.
31:0 - Reserved.
10:8 NodesPerProcessor
7:0 NodeId
Advertising NodeId seems all kinds of wrong 🙁
Yeah I don't think there is any sensible way to pass this down via
KVM_GET_SUPPORTED_CPUID. Making it all zeros is the only way, userspace
can always compute it on its own based on the topology that it wants the
guest to see. I'll send a separate patch.
Paolo