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>
This commit is contained in:
Anthony PERARD 2011-07-15 04:32:52 +00:00 committed by Alexander Graf
parent fb4bb2b587
commit 30ab61252b
1 changed files with 1 additions and 1 deletions

View File

@ -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;