Message ID | 5e752f52d95c584d15f9851cd6d47b74680ed22a.1332430811.git.julien.grall@citrix.com |
---|---|
State | New |
Headers | show |
On Thu, 2012-03-22 at 15:59 +0000, Julien Grall wrote: > Quickly fix for hvm_build in python. If an earlier patch breaks the build then this need to be part of that patch to allow bisection. > Signed-off-by: Julien Grall <julien.grall@citrix.com> > --- > tools/python/xen/lowlevel/xc/xc.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c > index 7c89756..eb004b6 100644 > --- a/tools/python/xen/lowlevel/xc/xc.c > +++ b/tools/python/xen/lowlevel/xc/xc.c > @@ -984,8 +984,9 @@ static PyObject *pyxc_hvm_build(XcObject *self, > if ( target == -1 ) > target = memsize; > > + // Ugly fix : we must retrieve the number of servers > if ( xc_hvm_build_target_mem(self->xc_handle, dom, memsize, > - target, image) != 0 ) > + target, image, 0) != 0 ) > return pyxc_error_to_exception(self->xc_handle); > > #if !defined(__ia64__)
diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index 7c89756..eb004b6 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -984,8 +984,9 @@ static PyObject *pyxc_hvm_build(XcObject *self, if ( target == -1 ) target = memsize; + // Ugly fix : we must retrieve the number of servers if ( xc_hvm_build_target_mem(self->xc_handle, dom, memsize, - target, image) != 0 ) + target, image, 0) != 0 ) return pyxc_error_to_exception(self->xc_handle); #if !defined(__ia64__)
Quickly fix for hvm_build in python. Signed-off-by: Julien Grall <julien.grall@citrix.com> --- tools/python/xen/lowlevel/xc/xc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)