From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNKzf-0001Eh-5z for qemu-devel@nongnu.org; Wed, 03 Apr 2013 06:32:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNKzc-0004MY-Fl for qemu-devel@nongnu.org; Wed, 03 Apr 2013 06:32:39 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:57431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNKzc-0004ML-6s for qemu-devel@nongnu.org; Wed, 03 Apr 2013 06:32:36 -0400 Received: by mail-we0-f170.google.com with SMTP id z2so1070049wey.29 for ; Wed, 03 Apr 2013 03:32:35 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 3 Apr 2013 12:32:08 +0200 Message-Id: <1364985128-23772-11-git-send-email-pbonzini@redhat.com> In-Reply-To: <1364985128-23772-1-git-send-email-pbonzini@redhat.com> References: <1364985128-23772-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2 10/10] configure: CONFIG_NO_XEN is duplicated List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net, pmaydell@linaro.org We already define it in Makefile.target. But we need to avoid a curious double negation in order to eliminate it. Tested-by: Stefano Stabellini Reviewed-by: Peter Maydell Signed-off-by: Paolo Bonzini --- configure | 3 --- hw/xen.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/configure b/configure index c8d47fe..52539a9 100755 --- a/configure +++ b/configure @@ -4159,12 +4159,9 @@ case "$target_arch2" in if test "$xen_pci_passthrough" = yes; then echo "CONFIG_XEN_PCI_PASSTHROUGH=y" >> "$config_target_mak" fi - else - echo "CONFIG_NO_XEN=y" >> $config_target_mak fi ;; *) - echo "CONFIG_NO_XEN=y" >> $config_target_mak esac case "$target_arch2" in arm|i386|x86_64|ppcemb|ppc|ppc64|s390x) diff --git a/hw/xen.h b/hw/xen.h index 6235f91..7451c5a 100644 --- a/hw/xen.h +++ b/hw/xen.h @@ -25,7 +25,7 @@ extern bool xen_allowed; static inline bool xen_enabled(void) { -#if defined(CONFIG_XEN_BACKEND) && !defined(CONFIG_NO_XEN) +#if defined(CONFIG_XEN_BACKEND) && defined(CONFIG_XEN) return xen_allowed; #else return 0; -- 1.8.1.4