diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-02-15 08:15:08 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-02-15 08:15:08 +0000 |
commit | 7527c26d470216da8817b2f56e2e8e481ca61694 (patch) | |
tree | 05f8be9d7596db69db88280242397c58df51cb3e /tools | |
parent | 819de76727c63414fc66045e4d0e56f9b5bfb104 (diff) | |
download | xen-7527c26d470216da8817b2f56e2e8e481ca61694.tar.gz xen-7527c26d470216da8817b2f56e2e8e481ca61694.tar.bz2 xen-7527c26d470216da8817b2f56e2e8e481ca61694.zip |
Fix a small bug about HVM_MAX_VCPUS related array
Currently it doesn't block running, anyway, it better fix the small
bug considering if in the future HVM_MAX_VCPUS will not necessarily be
8x value.
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>=
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/lowlevel/xc/xc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index 1932758090..8ed1053575 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -916,7 +916,7 @@ static PyObject *pyxc_hvm_build(XcObject *self, char *image; int memsize, target=-1, vcpus = 1, acpi = 0, apic = 1; PyObject *vcpu_avail_handle = NULL; - uint8_t vcpu_avail[HVM_MAX_VCPUS/8]; + uint8_t vcpu_avail[(HVM_MAX_VCPUS + 7)/8]; static char *kwd_list[] = { "domid", "memsize", "image", "target", "vcpus", |