[libvirt] [PATCH] Fix the initialization of the number of sockets

Eric Blake eblake at redhat.com
Tue Mar 9 18:14:40 UTC 2010


On 03/09/2010 10:34 AM, Stefan Berger wrote:
> When starting a VM 3 times, on the 3rd time the number of sockets is
> completely out of control. Initialize the socket numbers to zero so the
> cpu affinity does not occur due to max cpus being completely out of
> range and the VM can start.

ACK.  However, are there any of the other fields that also need
initialization to known values?  I see nothing setting nodeinfo->model,
nodeinfo->memory, nodeinfo->threads.  In particular, it looks like
nodeinfo->threads is read uninitialized in the same function.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list