[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH][xm-test] Check for Dom0 vcpus in a loop with a timeout in xm-test test enforce_dom0_cpus


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>, <ewan@xxxxxxxxxxxxx>
  • From: "Subrahmanian, Raj" <raj.subrahmanian@xxxxxxxxxx>
  • Date: Fri, 12 May 2006 16:35:37 -0400
  • Delivery-date: Fri, 12 May 2006 13:36:10 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcZ1334D/PWMLxEnRrGOdH/nD6vVhgAFbjaAAAMY1OA=
  • Thread-topic: [PATCH][xm-test] Check for Dom0 vcpus in a loop with a timeout in xm-test test enforce_dom0_cpus

The enforce_dom0_cpus test sets the number of vcpus for the Dom0 and
checks to see if they have been set correctly. We found that on
multi-proc systems, it takes a certain amount of time for the number of
vcpus to change. 

This patch checks the number of vcpus inside a loop until it is correct
or 20 seconds elapse, whichever happens first. If after 20 seconds the
number of vcpus is not changed correctly, an error is raised. 

With reference to this email discussion.
http://lists.xensource.com/archives/html/xen-devel/2006-05/msg00155.html

Thanks to Brian Carb <brian.carb@xxxxxxxxxx> for testing it out.

Raj

Signed-off-by: Rajagopalan Subrahmanian
<raj.subrahmanian@xxxxxxxxxx>

Attachment: enforce_dom0_cpus.patch
Description: enforce_dom0_cpus.patch

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.