Re: [PATCH 5/6] KVM: x86: Mask off reserved bits in CPUID.8000001EH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux