Mailing List Archive

[PATCH] xl: use libxl_cpumap_set_none not memset
# HG changeset patch
# User Ian Campbell <ian.campbell@citrix.com>
# Date 1336735243 -3600
# Node ID 5abc2c4e80892ca27db56406dcaf5cc3d7d9afda
# Parent 6d45fbdca09be60726eb7043a42dbac552e202e0
xl: use libxl_cpumap_set_none not memset

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

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
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
Re: [PATCH] xl: use libxl_cpumap_set_none not memset [ In reply to ]
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 <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel