Re: [PATCH] KVM: pass through CPUID(0x80000006)

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

 



> On 31. May 2018, at 18:52, Jim Mattson <jmattson@xxxxxxxxxx> wrote:
> 
> From: Eric Northup <digitaleric@xxxxxxxxxx>
> 
> Return L2 cache and TLB information to guests.
> They could have been set before, but the defaults that KVM returns will be
> necessary for usermode that doesn't supply their own CPUID tables.
> 
> Signed-off-by: Eric Northup <digitaleric@xxxxxxxxxx>
> 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 72d8c492d71d4..5c604ac1093d5 100644
> --- a/arch/x86/kvm/cpuid.c
> +++ b/arch/x86/kvm/cpuid.c
> @@ -639,6 +639,9 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
> 		entry->edx &= boot_cpu_data.x86_power;
> 		entry->eax = entry->ebx = entry->ecx = 0;
> 		break;
> +	case 0x80000006:
> +		/* L2 cache and TLB: pass through host info. */
> +		break;
> 	case 0x80000008: {
> 		unsigned g_phys_as = (entry->eax >> 16) & 0xff;
> 		unsigned virt_as = max((entry->eax >> 8) & 0xff, 48U);
> -- 
> 2.17.0.921.gf22659ad46-goog

Reviewed-by: Filippo Sironi <sironi@xxxxxxxxx>
Amazon Development Center Germany GmbH
Berlin - Dresden - Aachen
main office: Krausenstr. 38, 10117 Berlin
Geschaeftsfuehrer: Dr. Ralf Herbrich, Christian Schlaeger
Ust-ID: DE289237879
Eingetragen am Amtsgericht Charlottenburg HRB 149173 B





[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