Home | History | Annotate | Download | only in hw
      1 #ifndef QEMU_HW_XEN_H
      2 #define QEMU_HW_XEN_H 1
      3 /*
      4  * public xen header
      5  *   stuff needed outside xen-*.c, i.e. interfaces to qemu.
      6  *   must not depend on any xen headers being present in
      7  *   /usr/include/xen, so it can be included unconditionally.
      8  */
      9 #include <inttypes.h>
     10 
     11 /* xen-machine.c */
     12 enum xen_mode {
     13     XEN_EMULATE = 0,  // xen emulation, using xenner (default)
     14     XEN_CREATE,       // create xen domain
     15     XEN_ATTACH        // attach to xen domain created by xend
     16 };
     17 
     18 extern uint32_t xen_domid;
     19 extern enum xen_mode xen_mode;
     20 
     21 #endif /* QEMU_HW_XEN_H */
     22