WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix a small bug about HVM_MAX_VCPUS relat

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix a small bug about HVM_MAX_VCPUS related array
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Feb 2010 00:35:12 -0800
Delivery-date: Mon, 15 Feb 2010 00:35:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1266221708 0
# Node ID 0a1b69afe75474a45bfb933d1f59bdf3a1122303
# Parent  8a8392a842805730c8e66e769a573d05f92bfeb2
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@xxxxxxxxx>=
---
 tools/python/xen/lowlevel/xc/xc.c       |    2 +-
 xen/include/public/hvm/hvm_info_table.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r 8a8392a84280 -r 0a1b69afe754 tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Mon Feb 15 08:14:21 2010 +0000
+++ b/tools/python/xen/lowlevel/xc/xc.c Mon Feb 15 08:15:08 2010 +0000
@@ -916,7 +916,7 @@ static PyObject *pyxc_hvm_build(XcObject
     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", 
diff -r 8a8392a84280 -r 0a1b69afe754 xen/include/public/hvm/hvm_info_table.h
--- a/xen/include/public/hvm/hvm_info_table.h   Mon Feb 15 08:14:21 2010 +0000
+++ b/xen/include/public/hvm/hvm_info_table.h   Mon Feb 15 08:15:08 2010 +0000
@@ -69,7 +69,7 @@ struct hvm_info_table {
     uint32_t    high_mem_pgend;
 
     /* Bitmap of which CPUs are online at boot time. */
-    uint8_t     vcpu_online[HVM_MAX_VCPUS/8];
+    uint8_t     vcpu_online[(HVM_MAX_VCPUS + 7)/8];
 };
 
 #endif /* __XEN_PUBLIC_HVM_HVM_INFO_TABLE_H__ */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix a small bug about HVM_MAX_VCPUS related array, Xen patchbot-unstable <=