From patchwork Tue Jul 19 02:53:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 105670 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 6C9BAB6F71 for ; Wed, 20 Jul 2011 22:32:24 +1000 (EST) Received: from localhost ([::1]:51480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjVwq-0008OF-GJ for incoming@patchwork.ozlabs.org; Wed, 20 Jul 2011 08:32:20 -0400 Received: from eggs.gnu.org ([140.186.70.92]:58147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjTyE-0001Io-MB for qemu-devel@nongnu.org; Wed, 20 Jul 2011 06:25:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjTy9-0004OX-54 for qemu-devel@nongnu.org; Wed, 20 Jul 2011 06:25:37 -0400 Received: from cantor2.suse.de ([195.135.220.15]:45659 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjTy8-0004OH-GH for qemu-devel@nongnu.org; Wed, 20 Jul 2011 06:25:32 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 858FA8F9AB; Wed, 20 Jul 2011 12:25:30 +0200 (CEST) From: Alexander Graf To: QEMU-devel Developers Date: Tue, 19 Jul 2011 04:53:29 +0200 Message-Id: <1311044012-24288-4-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1311044012-24288-1-git-send-email-agraf@suse.de> References: <1311044012-24288-1-git-send-email-agraf@suse.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.15 Cc: Anthony PERARD , Anthony Liguori , Avi Kivity Subject: [Qemu-devel] [PATCH 3/6] 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 From: Anthony PERARD Use the "host" CONFIG_ define instead of the "target" one. Signed-off-by: Anthony PERARD Acked-by: Paolo Bonzini Signed-off-by: Alexander Graf --- 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;