[libvirt] RHBZ 1013045: Crash on xen domain startup

Eric Blake eblake at redhat.com
Wed Oct 30 18:37:24 UTC 2013


On 10/30/2013 11:38 AM, Jeremy Fitzhardinge wrote:

>     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.

Hmm, we already have virBitmapToData for converting from a virBitmap to
a uint8_t; using that would be much faster for populating cpumap than
doing a per-bit iteration over cpumask.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131030/e4b554f4/attachment-0001.sig>


More information about the libvir-list mailing list