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>=
This commit is contained in:
Keir Fraser committed 2010-02-15 08:15:08 +00:00
1 parent 819de76727
commit 7527c26d47
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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",
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.