From e37630ca4f5142a6830654d9801b473600417d5c Mon Sep 17 00:00:00 2001 From: aliguori Date: Wed, 22 Apr 2009 15:19:10 +0000 Subject: xen: groundwork for xen support (Gerd Hoffmann) - configure script and build system changes. - wind up new machine type. - add -xen-* command line options. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7219 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/xen.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 hw/xen.h (limited to 'hw/xen.h') diff --git a/hw/xen.h b/hw/xen.h new file mode 100644 index 000000000..3c8da4105 --- /dev/null +++ b/hw/xen.h @@ -0,0 +1,20 @@ +#ifndef QEMU_HW_XEN_H +#define QEMU_HW_XEN_H 1 +/* + * public xen header + * stuff needed outside xen-*.c, i.e. interfaces to qemu. + * must not depend on any xen headers being present in + * /usr/include/xen, so it can be included unconditionally. + */ + +/* xen-machine.c */ +enum xen_mode { + XEN_EMULATE = 0, // xen emulation, using xenner (default) + XEN_CREATE, // create xen domain + XEN_ATTACH // attach to xen domain created by xend +}; + +extern uint32_t xen_domid; +extern enum xen_mode xen_mode; + +#endif /* QEMU_HW_XEN_H */ -- cgit v1.2.3