]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Correctly initialize vcpu bitmap
authorStefan Bader <stefan.bader@canonical.com>
Wed, 24 Jul 2013 11:43:43 +0000 (13:43 +0200)
committerJim Fehlig <jfehlig@suse.com>
Wed, 24 Jul 2013 15:03:04 +0000 (09:03 -0600)
commit65026d72394752a7341bedab985eb29c46078187
treec30ced34d4fa3597d9dc7472a56421d644b14d0c
parenta884307447409700eabb8b1588548559e2a1875a
libxl: Correctly initialize vcpu bitmap

The avail_vcpu bitmap has to be allocated before it can be used (using
the maximum allowed value for that). Then for each available VCPU the
bit in the mask has to be set (libxl_bitmap_set takes a bit position
as an argument, not the number of bits to set).

Without this, I would always only get one VCPU for guests created
through libvirt/libxl.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
src/libxl/libxl_conf.c
src/libxl/libxl_conf.h
src/libxl/libxl_driver.c