Re: [PATCH 1/2] kvm: x86: Include multiple indices with CPUID leaf 0x8000001d

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

 



On Mon, Apr 1, 2019 at 10:06 AM Borislav Petkov <bp@xxxxxxx> wrote:
>
> On Wed, Mar 27, 2019 at 01:15:36PM -0700, Jim Mattson wrote:
> > Per the APM, "CPUID Fn8000_001D_E[D,C,B,A]X reports cache topology
> > information for the cache enumerated by the value passed to the
> > instruction in ECX, referred to as Cache n in the following
> > description. To gather information for all cache levels, software must
> > repeatedly execute CPUID with 8000_001Dh in EAX and ECX set to
> > increasing values beginning with 0 until a value of 00h is returned in
> > the field CacheType (EAX[4:0]) indicating no more cache descriptions
> > are available for this processor."
> >
> > The termination condition is the same as leaf 4, so we can reuse that
> > code block for leaf 0x8000001d.
> >
> > Fixes: 8765d75329a38 ("KVM: X86: Extend CPUID range to include new leaf")
> > Cc: Brijesh Singh <brijesh.singh@xxxxxxx>
> > Cc: Borislav Petkov <bp@xxxxxxx>
> > Signed-off-by: Jim Mattson <jmattson@xxxxxxxxxx>
> > Reviewed-by: Marc Orr <marcorr@xxxxxxxxxx>
> > ---
> >  arch/x86/kvm/cpuid.c | 7 +++----
> >  1 file changed, 3 insertions(+), 4 deletions(-)
>
> Reviewed-by: Borislav Petkov <bp@xxxxxxx>

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