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 16:04:45 +0000
Cc:
Delivery-date: Thu, 12 Nov 2009 08:04:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E2263E4A5B2284449EEBD0AAB751098418E55575D7@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: AcpjiGc6hZlnMOBYRPSWYjjerzo1vQAA1c0HAAO2138ABCG/kAABrkn/
Thread-topic: [PATCH] Don't assume the vcpu_id is continous in alloc_vcpu
User-agent: Microsoft-Entourage/12.19.0.090515
On 12/11/2009 15:27, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx> wrote:

> Thanks for your changes very much.
> I just noticed I missed get a lock for this change.
> Originally I thought the XEN_DOMCTL_max_vcpus will be synced, but seems no. So
> alloc_vcpu() may have race condition. (for idle_vcpu or dom0, it should be
> safe already)

All domctl operations are serialised on domctl_lock. I think that suffices?

 -- Keir



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