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

Re: [Xen-devel] [PATCH 3/3] x86_64: allow more vCPU-s per guest

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 3/3] x86_64: allow more vCPU-s per guest
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 18 Jun 2009 10:39:36 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 18 Jun 2009 02:40:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C65FC936.DA71%keir.fraser@xxxxxxxxxxxxx>
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: Acnv9wPBtf9PRolPRFaZth8UKiiUyQAAUNQ2AAAahvU=
Thread-topic: [Xen-devel] [PATCH 3/3] x86_64: allow more vCPU-s per guest
User-agent: Microsoft-Entourage/12.19.0.090515
On 18/06/2009 10:36, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx> wrote:

>> Agreed. Originally I intended to add at least a comment, but after realizing
>> that the path currently is only reached during domain creation (and I believe
>> there are issues elsewhere if one would really allow increasing the # of
>> vCPU-s in a domain on the fly), I decided to leave it as is (and the wmb()
>> can be considered sort of a comment to that effect).
> 
> Then I think it would be better to make that domctl really singleshot (i.e.,
> fail if d->max_vcpus is already non-zero), with a comment explaining why it
> is implemented this way. Buggily implementing an unused case can't be good.
> Can you generate a patch for this, please?
> 
> Is it safe do you think to go from d->max_vcpus=0 to d->max_vcpus!=0 on a
> live domain? (i.e, the specific case we do use in your general observation
> that increasing d->max_vcpus may be dangerous)?

Or alternatively I would be happy to keep the full domctl functionality, but
then we have to use rcu for freeing the old vcpu array, and we have to
convince ourselves that arbitrarily increasing max_vcpus is safe (I'm not
sure what problems you foresee there?).

 -- Keir



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