From: Wei Liu Subject: Re: [PATCH v2 1/2] Introduce configure option --with-system-qemu-traditional Date: Mon, 4 May 2015 12:18:08 +0100 Message-ID: <20150504111808.GF11819@zion.uk.xensource.com> References: <1429183500-19015-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1429183500-19015-1-git-send-email-stefano.stabellini@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Ian.Jackson@eu.citrix.com, xen-devel@lists.xensource.com, wei.liu2@citrix.com, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, Apr 16, 2015 at 12:24:58PM +0100, Stefano Stabellini wrote: > Introduce a configure option to disable the in-tree qemu-traditional > build and use an externally provided qemu-dm binary. The option is very > similar to the existing --with-system-qemu-xen. ^^^^^ --with-system-qemu > > Signed-off-by: Stefano Stabellini > --- > INSTALL | 3 +++ > tools/configure.ac | 16 ++++++++++++++++ > tools/libxl/libxl_dm.c | 11 ++++++++++- > 3 files changed, 29 insertions(+), 1 deletion(-) > > diff --git a/INSTALL b/INSTALL > index a0f2e7b..3c7c56f 100644 > --- a/INSTALL > +++ b/INSTALL > @@ -107,6 +107,9 @@ qemu-traditional. > --enable-qemu-traditional > --enable-rombios > > +Use the given qemu-traditional binary instead of compiling a private copy. > + --with-system-qemu-traditional=PATH > + > The libxl toolstack uses the upstream qemu per default. A private copy > will be built. If desired this private copy can be configured with > additional options passed to its configure script. > diff --git a/tools/configure.ac b/tools/configure.ac > index d31c2f3..9bad253 100644 > --- a/tools/configure.ac > +++ b/tools/configure.ac > @@ -169,6 +169,22 @@ AC_DEFINE([HAVE_ROMBIOS], [1], [ROMBIOS enabled]) > ]) > AC_SUBST(rombios) > > +AC_ARG_WITH([system-qemu-traditional], > + AS_HELP_STRING([--with-system-qemu-traditional@<:@=PATH@:>@], > + [Use system supplied qemu-traditional PATH or qemu-dm > + (taken from $PATH) as qemu-traditional device model instead of > + building and installing our own version]),[ > + case $withval in > + yes) qemu_traditional=n; qemu_traditional_path=qemu-dm ;; > + no) qemu_traditional=y; qemu_traditional_path= ;; > + *) qemu_traditional=n; qemu_traditional_path=$withval ;; > + esac > +],[]) Shouldn't this have something similar to qemu_xen case -- test architecture to determine whether to build it or not. And how does this option interact with --enable-qemu-traditional? Wei.