From patchwork Thu Mar 22 15:59:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 148303 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 89424B6F13 for ; Fri, 23 Mar 2012 05:46:48 +1100 (EST) Received: from localhost ([::1]:33115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAlqM-00069t-6q for incoming@patchwork.ozlabs.org; Thu, 22 Mar 2012 13:30:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAkSg-0006lM-7o for qemu-devel@nongnu.org; Thu, 22 Mar 2012 12:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAkSY-0004Vy-Mo for qemu-devel@nongnu.org; Thu, 22 Mar 2012 12:02:01 -0400 Received: from smtp.citrix.com ([66.165.176.89]:41452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAkSY-0004VS-Hz for qemu-devel@nongnu.org; Thu, 22 Mar 2012 12:01:54 -0400 X-IronPort-AV: E=Sophos;i="4.73,630,1325480400"; d="scan'208";a="23379722" Received: from ftlpmailmx02.citrite.net ([10.13.107.66]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 22 Mar 2012 12:01:53 -0400 Received: from meteora.cam.xci-test.com (10.80.248.241) by smtprelay.citrix.com (10.13.107.66) with Microsoft SMTP Server id 8.3.213.0; Thu, 22 Mar 2012 12:01:53 -0400 From: Julien Grall To: xen-devel@lists.xensource.com Date: Thu, 22 Mar 2012 15:59:32 +0000 Message-ID: <5e752f52d95c584d15f9851cd6d47b74680ed22a.1332430811.git.julien.grall@citrix.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.89 X-Mailman-Approved-At: Thu, 22 Mar 2012 13:30:27 -0400 Cc: Stefano.Stabellini@eu.citrix.com, qemu-devel@nongnu.org, julian.pidancet@citrix.com Subject: [Qemu-devel] [XEN][RFC PATCH 11/15] xc: Fix python build X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Quickly fix for hvm_build in python. Signed-off-by: Julien Grall --- 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__)