xen: Fix xen_enabled().
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 15 Jul 2011 04:32:52 +0000 (04:32 +0000)
committerAlexander Graf <agraf@suse.de>
Tue, 26 Jul 2011 04:43:10 +0000 (06:43 +0200)
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

index e432705..43b95d6 100644 (file)
--- 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;