[PATCH] xl: use libxl_cpumap_set_none not memset

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] xl: use libxl_cpumap_set_none not memset

Ian Campbell-10
# HG changeset patch
# User Ian Campbell <[hidden email]>
# Date 1336735243 -3600
# Node ID 5abc2c4e80892ca27db56406dcaf5cc3d7d9afda
# Parent  6d45fbdca09be60726eb7043a42dbac552e202e0
xl: use libxl_cpumap_set_none not memset

Signed-off-by: Ian Campbell <[hidden email]>

diff -r 6d45fbdca09b -r 5abc2c4e8089 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c Thu May 10 14:14:24 2012 +0100
+++ b/tools/libxl/xl_cmdimpl.c Fri May 11 12:20:43 2012 +0100
@@ -6107,7 +6107,7 @@ int main_cpupoolnumasplit(int argc, char
         fprintf(stderr, "failed to offline vcpus\n");
         goto out;
     }
-    memset(cpumap.map, 0, cpumap.size);
+    libxl_cpumap_set_none(&cpumap);
 
     for (c = 0; c < n_cpus; c++) {
         if (topology[c].node == LIBXL_CPUTOPOLOGY_INVALID_ENTRY) {

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] xl: use libxl_cpumap_set_none not memset

Ian Jackson-2
Ian Campbell writes ("[Xen-devel] [PATCH] xl: use libxl_cpumap_set_none not memset"):
> xl: use libxl_cpumap_set_none not memset

Acked-by: Ian Jackson <[hidden email]>
Committed-by: Ian Jackson <[hidden email]>

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel