xm::pincpu parameter handling fix
PATCH 1/1 xm::pincpu parameter handling fix
hello,
xm's pincpu has a problem handling the cpu parameter if the cpu number
Quoted 1 line
=10. this patch (against -unstable [email protected]) attemps to fix
it.
Signed-off-by Nguyen Anh Quynh <[email protected]>
$ diffstat xm_pincpu.patch main.py | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
===== tools/python/xen/xm/main.py 1.52 vs edited =====
tools/python/xen/xm/main.py +1 -1
@@ -512,7 +512,7 @@ cpus = [] cpumap = 0 for c in cpulist.split(','): - if len(c) > 1: + if c.find('-') != -1: (x,y) = c.split('-') for i in range(int(x),int(y)+1): cpus.append(int(i))
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel