Ubuntu 10.04 stuck in detect_extended_topology()
I am running Xen packaged with CentOS 5.4 and trying to install Ubuntu 10.04 as an HVM guest.
xen_major : 3
xen_minor : 1
xen_extra : .2-164.11.1.el5
After sprinkling the kernel with printks, I am seeing that it is stuck in the function detect_extended_topology() in the following loop:
<snip>
sub_index = 1;
do {
cpuid_count(0xb, sub_index, &eax, &ebx, &ecx, &edx);
printk("%s: after cpuid_count %d\n", __FUNCTION__, sub_index);
/*
* Check for the Core type in the implemented sub leaves.
*/
if (LEAFB_SUBTYPE(ecx) == CORE_TYPE) {
core_level_siblings = LEVEL_MAX_SIBLINGS(ebx);
core_plus_mask_width = BITS_SHIFT_NEXT_LEVEL(eax);
break;
}
sub_index++;
} while (LEAFB_SUBTYPE(ecx) != INVALID_TYPE);<snip>
The ECX leaf subtype never returns CORE_TYPE or INVALID_TYPE. So think I might be running in to a bug / quirk in the CPUID handling code in Xen packaged with CentOS 5.4. Is there a work around for it? Maybe specifying something in the cpuid option in the config file.
Thanks!
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 52 lines · AP Xen
I am running Xen packaged with CentOS 5.4 and trying to install Ubuntu 10.04 as an HVM guest.
xen_major: 3
xen_minor: 1
xen_extra: .2-164.11.1.el5After sprinkling the kernel with printks, I am seeing that it is stuck in the function
detect_extended_topology()in the following loop:<snip>
sub_index = 1; do { cpuid_count(0xb, sub_index, &eax, &ebx, &ecx, &edx); printk("%s: after cpuid_count %d\n", __FUNCTION__,
sub_index);/* * Check for the Core type in the implemented sub leaves. */ if (LEAFB_SUBTYPE(ecx) == CORE_TYPE) { core_level_siblings = LEVEL_MAX_SIBLINGS(ebx); core_plus_mask_width = BITS_SHIFT_NEXT_LEVEL(eax); break; } sub_index++; } while (LEAFB_SUBTYPE(ecx) != INVALID_TYPE);
Quoted 9 lines
<snip>
The ECX leaf subtype never returns
CORE_TYPEorINVALID_TYPE. So think I might be running in to a bug / quirk in the CPUID handling code in Xen packaged with CentOS 5.4. Is there a work around for it? Maybe specifying something in the cpuid option in the config file.
What's the host cpu type? You should be able to completely disable the extended topology leaf (0xb) with the cpuid= directive in the config file.
J
Quoted 10 lines
Quoted 1 line
The ECX leaf subtype never returns
CORE_TYPEorINVALID_TYPE. Sothink
Quoted 4 lines
I might be running in to a bug / quirk in the CPUID handling code in Xen packaged with CentOS 5.4. Is there a work around for it? Maybe specifying something in the cpuid option in the config file.
What's the host cpu type? You should be able to completely disable the extended topology leaf (
0xb) with the cpuid= directive in the config file.
The host cpu type is "Intel(R) Xeon(R) CPU E5520 @ 2.27GHz" (x86_64).
What should I specify in "cpuid=" in the config file? I tried the following:
cpuid = [ '0xb:ebx=xxxxxxxxxxxxxxxx0000000000000000' ]
Is that correct?
However, it did not have any effect. I do not see any mention of it in xend.log. Maybe the version of Xen packaged with CentOS 5.4 not support the cpuid config option.
xen_major : 3xen_minor : 1xen_extra : .2-164.11.1.el5
AP
Quoted 8 lines · AP Xen
The host cpu type is "Intel(R) Xeon(R) CPU E5520 @ 2.27GHz" (
x86_64).What should I specify in "cpuid=" in the config file? I tried the following:
cpuid = [ '0xb:ebx=xxxxxxxxxxxxxxxx0000000000000000' ]
Is that correct?
Yes, or you could set 0:eax to some low number to just completely disable the whole leaf.
Quoted 4 lines
However, it did not have any effect. I do not see any mention of it in xend.log. Maybe the version of Xen packaged with CentOS 5.4 not support the cpuid config option.
If not, I'd file a bug against RHEL Xen.
J
Quoted 14 lines · Jeremy Fitzhardinge
Quoted 8 lines · AP Xen
The host cpu type is "Intel(R) Xeon(R) CPU E5520 @ 2.27GHz" (
x86_64).What should I specify in "cpuid=" in the config file? I tried the following:
cpuid = [ '0xb:ebx=xxxxxxxxxxxxxxxx0000000000000000' ]
Is that correct?
Yes, or you could set 0:eax to some low number to just completely disable the whole leaf.
Quoted 7 lines
Quoted 4 lines
However, it did not have any effect. I do not see any mention of it in xend.log. Maybe the version of Xen packaged with CentOS 5.4 not support the cpuid config option.
If not, I'd file a bug against RHEL Xen.
I already did that some time ago :)
https://bugzilla.redhat.com/show_bug.cgi?id=525873
You could re-open the bug of course..
-- Pasi
This really blows :( But it looks like a good excuse to move to Xen4!
Thanks,
AP
Quoted 41 lines
-----Original Message-----
From: Pasi Kärkkäinen [mailto:[email protected]]
Sent: Wednesday, June 09, 2010 11:02 PM
To: Jeremy Fitzhardinge
Cc: AP Xen; [email protected]
Subject: Re: [Xen-devel] Ubuntu 10.04 stuck indetect_extended_topology()Quoted 2 lines · Jeremy Fitzhardinge
Quoted 1 line · AP Xen
The host cpu type is "Intel(R) Xeon(R) CPU E5520 @ 2.27GHz"
(
x86_64).Quoted 2 lines
Quoted 2 lines
What should I specify in "cpuid=" in the config file? I tried the
following:
Quoted 11 lines
Quoted 5 lines
cpuid = [ '0xb:ebx=xxxxxxxxxxxxxxxx0000000000000000' ]
Is that correct?
Yes, or you could set 0:eax to some low number to just completely disable the whole leaf.
Quoted 1 line
However, it did not have any effect. I do not see any mention of it
in
Quoted 1 line
Quoted 1 line
xend.log. Maybe the version of Xen packaged with CentOS 5.4 not
support the
Quoted 5 lines
Quoted 2 lines
cpuid config option.
If not, I'd file a bug against RHEL Xen.
I already did that some time ago :)
https://bugzilla.redhat.com/show_bug.cgi?id=525873You could re-open the bug of course..
-- Pasi
Quoted 14 lines · Jeremy Fitzhardinge
Quoted 8 lines · AP Xen
The host cpu type is "Intel(R) Xeon(R) CPU E5520 @ 2.27GHz" (
x86_64).What should I specify in "cpuid=" in the config file? I tried the following:
cpuid = [ '0xb:ebx=xxxxxxxxxxxxxxxx0000000000000000' ]
Is that correct?
Yes, or you could set 0:eax to some low number to just completely disable the whole leaf.
Quoted 6 lines
Quoted 4 lines
However, it did not have any effect. I do not see any mention of it in xend.log. Maybe the version of Xen packaged with CentOS 5.4 not support the cpuid config option.
If not, I'd file a bug against RHEL Xen.
Just found this thread catching up on old email.
Right, there's no configurable cpuid masking support. However, RHEL 5.5 (s/RHEL/CentOS/) masks ext. topo.
Drew