- bnc#513921 - Xen doesn't work get an eror when starting the

install processes or starting a pervious installed DomU
  20125-xc-parse-tuple-fix.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=16
This commit is contained in:
Charles Arnold 2009-09-16 22:29:21 +00:00 committed by Git OBS Bridge
parent d94c859728
commit 8a7acc07c5
3 changed files with 53 additions and 1 deletions

View File

@ -0,0 +1,45 @@
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1251297719 -3600
# Node ID ed672a604cc7d0acb9418b29cdc3d65ea84543e8
# Parent 71389988f5d4e6417f7da1d86da984acd5118efc
xend: Do not pass pointer to a 16-bit domid_t to PyArg_ParseTuple()
when it expects a full integer.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
diff -r 71389988f5d4 -r ed672a604cc7 tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Wed Aug 26 15:35:14 2009 +0100
+++ b/tools/python/xen/lowlevel/xc/xc.c Wed Aug 26 15:41:59 2009 +0100
@@ -654,10 +654,9 @@
static PyObject *pyxc_get_device_group(XcObject *self,
PyObject *args)
{
- domid_t domid;
uint32_t bdf = 0;
uint32_t max_sdevs, num_sdevs;
- int seg, bus, dev, func, rc, i;
+ int domid, seg, bus, dev, func, rc, i;
PyObject *Pystr;
char *group_str;
char dev_str[9];
@@ -812,7 +811,7 @@
static PyObject *pyxc_dom_set_policy_cpuid(XcObject *self,
PyObject *args)
{
- domid_t domid;
+ int domid;
if ( !PyArg_ParseTuple(args, "i", &domid) )
return NULL;
@@ -828,9 +827,8 @@
static PyObject *pyxc_dom_set_cpuid(XcObject *self,
PyObject *args)
{
- domid_t domid;
PyObject *sub_input, *config;
- unsigned int input[2];
+ unsigned int domid, input[2];
char *regs[4], *regs_transform[4];
if ( !PyArg_ParseTuple(args, "IIOO", &domid,

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 15 09:32:59 MDT 2009 - jfehlig@novell.com
- bnc#513921 - Xen doesn't work get an eror when starting the
install processes or starting a pervious installed DomU
20125-xc-parse-tuple-fix.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 24 10:31:36 MDT 2009 - carnold@novell.com Mon Aug 24 10:31:36 MDT 2009 - carnold@novell.com

View File

@ -176,7 +176,7 @@ Patch450: disable_emulated_device.diff
Patch500: hv_tools.patch Patch500: hv_tools.patch
Patch501: hv_xen_base.patch Patch501: hv_xen_base.patch
Patch502: hv_xen_extension.patch Patch502: hv_xen_extension.patch
Patch503: hv_win7_eoi_bug.patch Patch503: hv_win7_eoi_bug.patch
Patch999: tmp_build.patch Patch999: tmp_build.patch
Url: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ Url: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build