WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH 1/5] xen: Fix xen_enabled().

To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH 1/5] xen: Fix xen_enabled().
From: Paolo Bonzini <pbonzini@xxxxxxxxxx>
Date: Fri, 15 Jul 2011 16:46:33 +0200
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, QEMU-devel <qemu-devel@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, Alexander Graf <agraf@xxxxxxx>
Delivery-date: Fri, 15 Jul 2011 07:48:40 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:newsgroups:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Csy3nGJd5faA0GP2fDlgTROhegd9DvRXLhbTI6pR7lY=; b=Qb2uRNrzkOrLUYfeSPvhNr81zSrbFRlm9hyUvAx/Dg8BMQairFjS1Z9pWjMR19s6jp Gwjc8JjUd4LCxkLgLBKpubHD23hoea1LOqeRobiy0shI2Z4w/ffFB5yLcBnlEPVB6Tfk /8QVRen9+ib+eduZ6pTUba30dBSR1um2CfV/w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1310740376-13323-2-git-send-email-anthony.perard@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Newsgroups: gmane.comp.emulators.qemu, gmane.comp.emulators.xen.devel
References: <1310740376-13323-1-git-send-email-anthony.perard@xxxxxxxxxx> <1310740376-13323-2-git-send-email-anthony.perard@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Mnenhy/0.8.3 Thunderbird/3.1.10
On 07/15/2011 04:32 PM, Anthony PERARD wrote:
Use the "host" CONFIG_ define instead of the "target" one.

Signed-off-by: Anthony PERARD<anthony.perard@xxxxxxxxxx>
---
  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;

Acked-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>

Paolo


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel