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] changing max vcpus threshold while a domain is running

To: Keir Frazer <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] changing max vcpus threshold while a domain is running
From: Ryan Grimm <grimm@xxxxxxxxxx>
Date: Wed, 25 Jan 2006 11:10:09 -0600
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 25 Jan 2006 17:19:20 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
User-agent: Mutt/1.5.6+20040907i
Hi Keir,

I am interested in changing the max vcpu threshold for a domain while it
is running.  The following comment in common/dom0_ops.c warns against this:

   /*
    * Can only create new VCPUs while the domain is not fully
    * constructed
    * (and hence not runnable). Xen needs auditing for races before
    * removing this check.
    */
    ret = -EINVAL;
    if ( test_bit(_VCPUF_initialised, &d->vcpu[0]->vcpu_flags) )
        goto maxvcpu_out;

Do you know which race condition is being avoided by this check for
_VCPUF_initialised?  Could it be the for_each_vcpu macro only checks for
null and a vcpu structure could be alloc'd but not initialized, and then
used inside the macro?   

Thanks,
Ryan

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] changing max vcpus threshold while a domain is running, Ryan Grimm <=