aboutsummaryrefslogtreecommitdiff
path: root/hw/xen.h
diff options
context:
space:
mode:
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 780dcf713a..1fefe3ad25 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 */