aboutsummaryrefslogtreecommitdiff
path: root/hw/xen.h
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2010-08-19 12:27:56 +0100
committerAlexander Graf <agraf@suse.de>2011-05-08 10:10:00 +0200
commit3285cf4fe78b4b83b70b9306cc97968b414a6e9d (patch)
tree1e95a4a1f27382ab7bacc9825b375d33228ad18e /hw/xen.h
parentd5b93ddfefe63d5869a8eb97ea3474867d3b105b (diff)
downloadqemu-3285cf4fe78b4b83b70b9306cc97968b414a6e9d.zip
qemu-3285cf4fe78b4b83b70b9306cc97968b414a6e9d.tar.gz
qemu-3285cf4fe78b4b83b70b9306cc97968b414a6e9d.tar.bz2
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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/hw/xen.h b/hw/xen.h
index 780dcf7..1fefe3a 100644
--- a/hw/xen.h
+++ b/hw/xen.h
@@ -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 */