Subrahmanian, Raj
2006-May-12 20:35 UTC
[Xen-devel] [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@unisys.com> for testing it out. Raj Signed-off-by: Rajagopalan Subrahmanian <raj.subrahmanian@unisys.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2006-May-19 15:22 UTC
[Xen-devel] Re: [PATCH][xm-test] Check for Dom0 vcpus in a loop with a timeout in xm-test test enforce_dom0_cpus
On Fri, May 12, 2006 at 04:35:37PM -0400, Subrahmanian, Raj wrote:> 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@unisys.com> for testing it out. > > Raj > > Signed-off-by: Rajagopalan Subrahmanian > <raj.subrahmanian@unisys.com>Applied, thanks Raj. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel