libxl: fix bug the number of running vcpu inconsistent with config file
authorZhang, Yang Z <yang.z.zhang@intel.com>
Tue, 24 Jul 2012 09:29:18 +0000 (10:29 +0100)
committerZhang, Yang Z <yang.z.zhang@intel.com>
Tue, 24 Jul 2012 09:29:18 +0000 (10:29 +0100)
commitf2c89c53c44d9d8adbba43db6f02701c8b155383
tree4451f5aa82dff6835f5f4f855275158710469a13
parente5ca6b5b9b2462d3ac2ab5d455d2bf72951f0b04
libxl: fix bug the number of running vcpu inconsistent with config file

The following patch will fix the bug 1825. http://bugzilla.xen.org/bugzilla/show_bug.cgi?id=1825

When using memcpy to update vcpu_online, the high bits of vcpu_online
may unmodified if the size of avail_vcpus less than vcpu_online. So we
need to clear it before the memory copying.

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Acked-by: Ian Campbell <ian.campbelL@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dom.c