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-devel] dom0 and apicid not equal to cpuid

To: Mark Langsdorf <mark.langsdorf@xxxxxxx>
Subject: Re: [Xen-devel] dom0 and apicid not equal to cpuid
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 14 Feb 2008 08:26:59 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Feb 2008 00:26:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200802131652.01613.mark.langsdorf@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Achu413GnJa5atrWEdy7NQAWy6hiGQ==
Thread-topic: [Xen-devel] dom0 and apicid not equal to cpuid
User-agent: Microsoft-Entourage/
On 13/2/08 22:52, "Mark Langsdorf" <mark.langsdorf@xxxxxxx> wrote:

> I'm not exactly sure if this is what you wanted or not, but it's
> the minimum patch that resolves the issue on my system and it
> should be the correct logic path.
> Replace the hard coded values in the dom0_vcpus_pinned case with
> with the correct logic to get Xen to do the right thing.

It's pretty obviously not the correct thing to do since it is not generally
the case that apicid == cpuid+4. The latter id space does not even have a
guaranteed ordering across physical cores and sockets! This is why you were
discussing reviving code in mpparse.c, because this relationship must be
established dynamically, right?

 -- Keir

Xen-devel mailing list