search for: maxei2

Displaying 4 results from an estimated 4 matches for "maxei2".

Did you mean: maxei
2012 Apr 30
4
[PATCHv2] x86info: dump kvm cpuid's
...&ebx, &ecx, NULL); cpu->stepping = eax & 0xf; cpu->model = (eax >> 4) & 0xf; cpu->family = (eax >> 8) & 0xf; @@ -29,6 +29,19 @@ void get_cpu_info_basics(struct cpudata *cpu) cpuid(cpu->number, 0xC0000000, &maxei, NULL, NULL, NULL); cpu->maxei2 = maxei; + if (ecx & 0x80000000) { + cpuid(cpu->number, 0x40000000, &maxhv, NULL, NULL, NULL); + /* + * KVM up to linux 3.4 reports 0 as the max hypervisor leaf, + * where it really means 0x40000001. + * Most (all?) hypervisors have at least one CPUID besides + * the vendor ID...
2012 Apr 30
4
[PATCHv2] x86info: dump kvm cpuid's
...&ebx, &ecx, NULL); cpu->stepping = eax & 0xf; cpu->model = (eax >> 4) & 0xf; cpu->family = (eax >> 8) & 0xf; @@ -29,6 +29,19 @@ void get_cpu_info_basics(struct cpudata *cpu) cpuid(cpu->number, 0xC0000000, &maxei, NULL, NULL, NULL); cpu->maxei2 = maxei; + if (ecx & 0x80000000) { + cpuid(cpu->number, 0x40000000, &maxhv, NULL, NULL, NULL); + /* + * KVM up to linux 3.4 reports 0 as the max hypervisor leaf, + * where it really means 0x40000001. + * Most (all?) hypervisors have at least one CPUID besides + * the vendor ID...
2012 Apr 30
2
x86info: dump kvm cpuid's
...it > > > > Thanks! > > > > diff --git a/x86info.c b/x86info.c > > index 22c4734..dee5ed1 100644 > > --- a/x86info.c > > +++ b/x86info.c > > @@ -44,6 +44,7 @@ static void display_detailed_info(struct cpudata *cpu) > > > > if (cpu->maxei2 >=0xC0000000) > > dump_raw_cpuid(cpu->number, 0xC0000000, cpu->maxei2); > > + dump_raw_cpuid(cpu->number, 0x40000000, 0x40000001); > > } > > > > if (show_cacheinfo) { > > -- > Gleb.
2012 Apr 30
2
x86info: dump kvm cpuid's
...it > > > > Thanks! > > > > diff --git a/x86info.c b/x86info.c > > index 22c4734..dee5ed1 100644 > > --- a/x86info.c > > +++ b/x86info.c > > @@ -44,6 +44,7 @@ static void display_detailed_info(struct cpudata *cpu) > > > > if (cpu->maxei2 >=0xC0000000) > > dump_raw_cpuid(cpu->number, 0xC0000000, cpu->maxei2); > > + dump_raw_cpuid(cpu->number, 0x40000000, 0x40000001); > > } > > > > if (show_cacheinfo) { > > -- > Gleb.