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] [PATCH][xm-test] Check for Dom0 vcpus in a loop with a timeo

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>, <ewan@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][xm-test] Check for Dom0 vcpus in a loop with a timeout in xm-test test enforce_dom0_cpus
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
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
<Prev in Thread] Current Thread [Next in Thread>