summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2011-07-15 04:32:52 +0000
committerAlexander Graf <agraf@suse.de>2011-07-26 06:43:10 +0200
commit30ab61252b71446977e298f146be124eb4a5b333 (patch)
tree0291787a614bd6c0f6f4abaab04a2b26733ff503 /hw
parentfb4bb2b587549612a0da92de68fcc096ffd8a7d7 (diff)
downloadhqemu-30ab61252b71446977e298f146be124eb4a5b333.zip
hqemu-30ab61252b71446977e298f146be124eb4a5b333.tar.gz
xen: Fix xen_enabled().
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/xen.h2
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;
OpenPOWER on IntegriCloud