WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH] Don't assume the vcpu_id is continous in alloc_v

To: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] Don't assume the vcpu_id is continous in alloc_vcpu
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 12 Nov 2009 11:31:58 +0000
Cc:
Delivery-date: Thu, 12 Nov 2009 03:32:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E2263E4A5B2284449EEBD0AAB751098418E555754C@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpjiGc6hZlnMOBYRPSWYjjerzo1vQAA1c0H
Thread-topic: [PATCH] Don't assume the vcpu_id is continous in alloc_vcpu
User-agent: Microsoft-Entourage/12.20.0.090605
On 12/11/2009 11:08, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx> wrote:

> Currently in alloc_vcpu, it assumes the vcpu is allocated with vcpu_id is
> continous.
> When cpu hot-added, this assumption is broken because the hot-added CPU may be
> brougt online by dom0 in arbitrary order. This patch try to link the new vcpu
> to the end of the link.
> 
> Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>

Is this something to do with allocating vcpus for the idle domain?

If so, I suggest we just allocate vcpu_ids sequentially on-demand. I can
work up a patch for you to test if you like.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel