]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: fix dubious cpumask handling in libxlDomainSetVcpuAffinities
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 30 Oct 2013 17:38:08 +0000 (10:38 -0700)
committerJim Fehlig <jfehlig@suse.com>
Fri, 1 Nov 2013 15:05:36 +0000 (09:05 -0600)
commitba1bf10063a0205c1de12b209b0282833710214f
tree67a2ec82e01e670e72af0de70c4be84b42c2dd6a
parent835f992a68f78ff0812d4302090af44e50dece02
libxl: fix dubious cpumask handling in libxlDomainSetVcpuAffinities

Rather than casting the virBitmap pointer to uint8_t* and then using
the structure contents as a byte array, use the virBitmap API to determine
the bitmap size and test each bit.

Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
src/libxl/libxl_driver.c