Patchwork [3/6] xen: Fix xen_enabled().

login
register
mail settings
Submitter Alexander Graf
Date July 19, 2011, 2:53 a.m.
Message ID <1311044012-24288-4-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/105670/
State New
Headers show

Comments

Alexander Graf - July 19, 2011, 2:53 a.m.
From: Anthony PERARD <anthony.perard@citrix.com>

Use the "host" CONFIG_ define instead of the "target" one.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 hw/xen.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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;