Re: [PATCH] kvm: cpuid: Expose leaves 0x80000005 and 0x80000006 to the guest

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

 



On Tue, Oct 22, 2019 at 2:33 PM Jim Mattson <jmattson@xxxxxxxxxx> wrote:
>
> Leaf 0x80000005 is "L1 Cache and TLB Information." Leaf 0x80000006 is
> "L2 Cache and TLB and L3 Cache Information." Include these leaves in
> the array returned by KVM_GET_SUPPORTED_CPUID.
>
> Signed-off-by: Jim Mattson <jmattson@xxxxxxxxxx>
> ---
>  arch/x86/kvm/cpuid.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
> index 9c5029cf6f3f..1b40d8277b84 100644
> --- a/arch/x86/kvm/cpuid.c
> +++ b/arch/x86/kvm/cpuid.c
> @@ -730,6 +730,9 @@ static inline int __do_cpuid_func(struct kvm_cpuid_entry2 *entry, u32 function,
>                 entry->ecx &= kvm_cpuid_8000_0001_ecx_x86_features;
>                 cpuid_mask(&entry->ecx, CPUID_8000_0001_ECX);
>                 break;
> +       case 0x80000005:
> +       case 0x80000006:
> +               break;
>         case 0x80000007: /* Advanced power management */
>                 /* invariant TSC is CPUID.80000007H:EDX[8] */
>                 entry->edx &= (1 << 8);
> --
> 2.23.0.866.gb869b98d4c-goog
>
Ping.



[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