提交 30ab6125 编写于 作者: A Anthony PERARD 提交者: Alexander Graf

xen: Fix xen_enabled().

Use the "host" CONFIG_ define instead of the "target" one.
Signed-off-by: NAnthony PERARD <anthony.perard@citrix.com>
Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 fb4bb2b5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册