diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2010-08-19 12:27:56 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-05-08 10:10:00 +0200 |
commit | 3285cf4fe78b4b83b70b9306cc97968b414a6e9d (patch) | |
tree | 1e95a4a1f27382ab7bacc9825b375d33228ad18e /hw/xen.h | |
parent | d5b93ddfefe63d5869a8eb97ea3474867d3b105b (diff) |
xen: Add initialisation of Xen
The xenpv machine use the common init function.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/xen.h')
-rw-r--r-- | hw/xen.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -18,4 +18,17 @@ enum xen_mode { extern uint32_t xen_domid; extern enum xen_mode xen_mode; +extern int xen_allowed; + +static inline int xen_enabled(void) +{ +#ifdef CONFIG_XEN + return xen_allowed; +#else + return 0; +#endif +} + +int xen_init(void); + #endif /* QEMU_HW_XEN_H */ |