From nobody Thu Apr 25 10:20:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1595927966; cv=none; d=zohomail.com; s=zohoarc; b=I7iyQ1LUAhapM8195ffNIIXji7IB4dyqVpPeoyJcQa3zPm+ejR+5HsZzcXMLyROUznerJUDKhHJffxEzdDjFUOTSr/Nriy0UU4veva0IUDujKM0ygaVc64E9Tbx3/W3crcmN0pP2iPcllcxhOnPD26L70hVK8U3SF4QZr28brm8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595927966; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=sjv/L6hz1YrCvxTOhpyWiGw3pyQEgsy/LiJEyUnsD/U=; b=kvvl3VPcUH5LGqT6/i/Pl7s0bZSWHcnb+YfEAWZvtEHruU7/Whey1jrzug8RK3JlG4/WxgnH8Ylp4jcurymJYXE9SRt5338Ff9WwC6+DbdqwlyoYKEkdyW9vp1L1dL+3ucXN/p9zK81Wz3k/s+Rntf+IZaujgodJagumAGy+6l0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1595927966284971.3352175146597; Tue, 28 Jul 2020 02:19:26 -0700 (PDT) Received: from localhost ([::1]:32930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0Llc-0003nQ-Ro for importer@patchew.org; Tue, 28 Jul 2020 05:19:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0Lkt-0003N8-UL for qemu-devel@nongnu.org; Tue, 28 Jul 2020 05:18:39 -0400 Received: from mail.xenproject.org ([104.130.215.37]:57370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0Lko-0000EV-Ke for qemu-devel@nongnu.org; Tue, 28 Jul 2020 05:18:39 -0400 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k0Lkm-0003hk-5S; Tue, 28 Jul 2020 09:18:32 +0000 Received: from host86-143-223-30.range86-143.btcentralplus.com ([86.143.223.30] helo=u2f063a87eabd5f.home) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0Lkl-0007du-SK; Tue, 28 Jul 2020 09:18:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sjv/L6hz1YrCvxTOhpyWiGw3pyQEgsy/LiJEyUnsD/U=; b=FU0HNTN1iUoJ8yy8ZzYwTC6Ap7 8/izMpkwkHS/Ft1mujCVI/UNMGzrPP8FtbfQ78o312H8gUmgiScz0nFl8EOiYy2nueAS2V2bzPZhg KW6vUC45EVTYIwfgxrzXnXwG6kPbI2lNUMKoHHAoVs0oAusn5SFauRpixnrvxFsjKgTU=; From: Paul Durrant To: qemu-devel@nongnu.org, xen-devel@lists.xenproject.org Subject: [PATCH] configure: define CONFIG_XEN when Xen is enabled Date: Tue, 28 Jul 2020 10:18:28 +0100 Message-Id: <20200728091828.21702-1-paul@xen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=104.130.215.37; envelope-from=paul@xen.org; helo=mail.xenproject.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/28 05:18:33 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anthony Perard , Paul Durrant , Stefano Stabellini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Paul Durrant The recent commit da278d58a092 "accel: Move Xen accelerator code under accel/xen/" introduced a subtle semantic change, making xen_enabled() always return false unless CONFIG_XEN is defined prior to inclusion of sysemu/xen.= h, which appears to be the normal case. This causes various use-cases of QEMU with Xen to break. This patch makes sure that CONFIG_XEN is defined if --enable-xen is passed to configure. Fixes: da278d58a092 ("accel: Move Xen accelerator code under accel/xen/") Signed-off-by: Paul Durrant --- Cc: "Philippe Mathieu-Daud=C3=A9" Cc: Laurent Vivier Cc: Stefano Stabellini Cc: Anthony Perard --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 2acc4d1465..f1b9d129fd 100755 --- a/configure +++ b/configure @@ -7434,6 +7434,7 @@ if test "$virglrenderer" =3D "yes" ; then echo "VIRGL_LIBS=3D$virgl_libs" >> $config_host_mak fi if test "$xen" =3D "yes" ; then + echo "CONFIG_XEN=3Dy" >> $config_host_mak echo "CONFIG_XEN_BACKEND=3Dy" >> $config_host_mak echo "CONFIG_XEN_CTRL_INTERFACE_VERSION=3D$xen_ctrl_version" >> $config_= host_mak fi --=20 2.20.1