* [PATCH] xm::pincpu parameter handling fix
@ 2005-05-27 10:39 aq
0 siblings, 0 replies; only message in thread
From: aq @ 2005-05-27 10:39 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
hello,
xm's pincpu has a problem handling the cpu parameter if the cpu number
>=10. this patch (against -unstable ChangeSet@1.1573) attemps to fix
it.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
$ diffstat xm_pincpu.patch
main.py | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
[-- Attachment #2: xm_pincpu.patch --]
[-- Type: application/octet-stream, Size: 474 bytes --]
===== tools/python/xen/xm/main.py 1.52 vs edited =====
--- 1.52/tools/python/xen/xm/main.py 2005-05-13 00:04:56 +09:00
+++ edited/tools/python/xen/xm/main.py 2005-05-27 19:02:10 +09:00
@@ -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))
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-27 10:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-27 10:39 [PATCH] xm::pincpu parameter handling fix aq
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.