mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
819de76727
commit
7527c26d47
2 files changed
+2
-2
No files matched your search
@@ -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",
|
||||
|
||||