From patchwork Mon Sep 25 15:01:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9970101 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6EFA760225 for ; Mon, 25 Sep 2017 15:03:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60A32203B9 for ; Mon, 25 Sep 2017 15:03:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 556EB28522; Mon, 25 Sep 2017 15:03:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D7DF2203B9 for ; Mon, 25 Sep 2017 15:03:56 +0000 (UTC) Received: from localhost ([::1]:42871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwUvM-0004U7-4P for patchwork-qemu-devel@patchwork.kernel.org; Mon, 25 Sep 2017 11:03:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwUty-0004Rt-2U for qemu-devel@nongnu.org; Mon, 25 Sep 2017 11:02:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwUtu-0006SD-6n for qemu-devel@nongnu.org; Mon, 25 Sep 2017 11:02:30 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:23286) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwUtu-0006Rd-0L for qemu-devel@nongnu.org; Mon, 25 Sep 2017 11:02:26 -0400 X-IronPort-AV: E=Sophos;i="5.42,436,1500940800"; d="scan'208";a="449112868" Date: Mon, 25 Sep 2017 16:01:48 +0100 From: Anthony PERARD To: Ian Jackson Message-ID: <20170925150148.GG1859@perard.uk.xensource.com> References: <1505498999-17427-1-git-send-email-ian.jackson@eu.citrix.com> <1505498999-17427-2-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1505498999-17427-2-git-send-email-ian.jackson@eu.citrix.com> User-Agent: Mutt/1.9.0 (2017-09-02) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.63 Subject: Re: [Qemu-devel] [PATCH RFC 1/6] xen: link against xentoolcore X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Stefano Stabellini , qemu-devel@nongnu.org, xen-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP On Fri, Sep 15, 2017 at 07:09:54PM +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson > --- > configure | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Here is a patch that I think will work, if libxentoolcore is release in Xen 4.10. diff --git a/configure b/configure index 133a5757ef..a22ff71294 100755 --- a/configure +++ b/configure @@ -2071,7 +2071,7 @@ if test "$xen" != "no" ; then $($pkg_config --modversion xencontrol | sed 's/\./ /g') )" xen=yes xen_pc="xencontrol xenstore xenguest xenforeignmemory xengnttab" - xen_pc="$xen_pc xenevtchn xendevicemodel" + xen_pc="$xen_pc xenevtchn xendevicemodel xentoolcore" QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags $xen_pc)" libs_softmmu="$($pkg_config --libs $xen_pc) $libs_softmmu" LDFLAGS="$($pkg_config --libs $xen_pc) $LDFLAGS" @@ -2103,18 +2103,20 @@ EOF cat > $TMPC < +#include int main(void) { xenforeignmemory_handle *xfmem; xfmem = xenforeignmemory_open(0, 0); xenforeignmemory_map2(xfmem, 0, 0, 0, 0, 0, 0, 0); + xentoolcore_restrict_all(0); return 0; } EOF - compile_prog "" "$xen_libs -lxendevicemodel $xen_stable_libs" + compile_prog "" "$xen_libs -lxendevicemodel $xen_stable_libs -lxentoolcore" then - xen_stable_libs="-lxendevicemodel $xen_stable_libs" + xen_stable_libs="-lxendevicemodel $xen_stable_libs -lxentoolcore" xen_ctrl_version=41000 xen=yes elif