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.gr...@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__)