This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


RE: [Xen-ia64-devel] how to make a "smp xen0 config file", thanks

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, "Tristan Gingold" <Tristan.Gingold@xxxxxxxx>, "You, Yongkang" <yongkang.you@xxxxxxxxx>
Subject: RE: [Xen-ia64-devel] how to make a "smp xen0 config file", thanks
From: "Zhang, Jingke" <jingke.zhang@xxxxxxxxx>
Date: Wed, 14 Jun 2006 14:56:56 +0800
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 14 Jun 2006 00:00:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcaOzy7kpUI+i+mkSxC6eci+DROV9wACdLBwACmSloA=
Thread-topic: [Xen-ia64-devel] how to make a "smp xen0 config file", thanks
Hi Kevin,
    As you said, I change the CONFIG_NR_CPUS to be same as MAX_VIRT_CPUS with 
Xiantao's help. Then I can find 2 cpu in the /proc/cpuinfo and "xm vcpu-list" 
Name                            ID  VCPU  CPU  State  Time(s)  CPU Affinity
Domain-0               0     0    0   r--     264.9     0
Domain-0               0     1    1   r--     264.0     any cpu


-----Original Message-----
From: Tian, Kevin 
Sent: Tuesday, June 13, 2006 7:09 PM
To: Tristan Gingold; You, Yongkang; Zhang, Jingke
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-ia64-devel] how to make a "smp xen0 config file", thanks

>From: Tristan Gingold
>Sent: 2006年6月13日 17:43
>Le Mardi 13 Juin 2006 10:58, You, Yongkang a écrit :
>> Hi Tristan,
>> That machine disabled HT from BIOS. Xen should also only can see 2,
>why 4?
>> Native Linux hasn't problem run on it.
>You have only one socket, two cores enabled.  Right ?
>I still do not understand why Linux doesn't start the second CPU.  Xen
>to be correct.

The hint should be:

(XEN) ACPI: Local APIC address c0000000fee00000
(XEN) ACPI: [APIC:0x07] ignored 12 entries of 16 found

Currently the default config file sets CONFIG_NR_CPUS to be 4, 
which means only the early 4 entries can be parsed. See Jingke's log:

(XEN) ACPI: LSAPIC (acpi_id[0x00] lsapic_id[0xc0] lsapic_eid[0x18] 
(XEN) CPU 0 (0xc018) enabled (BSP)
(XEN) ACPI: LSAPIC (acpi_id[0x04] lsapic_id[0xc1] lsapic_eid[0x18] 
(XEN) CPU 4 (0xc118) enabled

The 2nd active LSAPIC entry happens to be 5th slot in MADT table, 
which is ignored by dom0. Then it's easy to understand why Tristan 
can succeed on his box due to possibly different LSAPIC entries.

Jingke, could you try enlarging CONFIG_NR_CPUS to be same as 
MAX_VIRT_CPUS, to see whether dom0 smp will be up for you?


Xen-ia64-devel mailing list