From patchwork Fri Jul 15 14:32:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 104830 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CB20DB6F54 for ; Sat, 16 Jul 2011 00:37:06 +1000 (EST) Received: from localhost ([::1]:48146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhjVn-0003wV-8l for incoming@patchwork.ozlabs.org; Fri, 15 Jul 2011 10:37:03 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhjSH-0003v3-8n for qemu-devel@nongnu.org; Fri, 15 Jul 2011 10:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhjSC-00074R-AM for qemu-devel@nongnu.org; Fri, 15 Jul 2011 10:33:24 -0400 Received: from smtp.citrix.com ([66.165.176.89]:52088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhjSB-000742-Vs for qemu-devel@nongnu.org; Fri, 15 Jul 2011 10:33:20 -0400 X-IronPort-AV: E=Sophos;i="4.65,535,1304308800"; d="scan'208";a="15106011" Received: from ftlpmailmx01.citrite.net ([10.13.107.65]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 15 Jul 2011 10:33:18 -0400 Received: from smtp01.ad.xensource.com (10.219.128.104) by smtprelay.citrix.com (10.13.107.65) with Microsoft SMTP Server id 8.3.137.0; Fri, 15 Jul 2011 10:33:17 -0400 Received: from perard.uk.xensource.com (dhcp-3-28.uk.xensource.com [10.80.3.28] (may be forged)) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id p6FEXDnv018484; Fri, 15 Jul 2011 07:33:16 -0700 From: Anthony PERARD To: QEMU-devel , Alexander Graf Date: Fri, 15 Jul 2011 15:32:52 +0100 Message-ID: <1310740376-13323-2-git-send-email-anthony.perard@citrix.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1310740376-13323-1-git-send-email-anthony.perard@citrix.com> References: <1310740376-13323-1-git-send-email-anthony.perard@citrix.com> 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 Cc: Anthony PERARD , Xen Devel , Stefano Stabellini Subject: [Qemu-devel] [PATCH 1/5] xen: Fix xen_enabled(). 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 Use the "host" CONFIG_ define instead of the "target" one. Signed-off-by: Anthony PERARD Acked-by: Paolo Bonzini --- hw/xen.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xen.h b/hw/xen.h index e432705..43b95d6 100644 --- a/hw/xen.h +++ b/hw/xen.h @@ -24,7 +24,7 @@ extern int xen_allowed; static inline int xen_enabled(void) { -#ifdef CONFIG_XEN +#ifdef CONFIG_XEN_BACKEND return xen_allowed; #else return 0;