Revision 9306acb5 hw/xen_machine_pv.c

b/hw/xen_machine_pv.c
27 27
#include "sysemu.h"
28 28
#include "boards.h"
29 29
#include "xen_backend.h"
30
#include "xen_domainbuild.h"
30 31

  
31 32
uint32_t xen_domid;
32 33
enum xen_mode xen_mode = XEN_EMULATE;
......
57 58
        fprintf(stderr, "%s: xen backend core setup failed\n", __FUNCTION__);
58 59
        exit(1);
59 60
    }
61

  
62
    switch (xen_mode) {
63
    case XEN_ATTACH:
64
        /* nothing to do, xend handles everything */
65
        break;
66
    case XEN_CREATE:
67
        if (xen_domain_build_pv(kernel_filename, initrd_filename,
68
                                kernel_cmdline) < 0) {
69
            fprintf(stderr, "xen pv domain creation failed\n");
70
            exit(1);
71
        }
72
        break;
73
    case XEN_EMULATE:
74
        fprintf(stderr, "xen emulation not implemented (yet)\n");
75
        exit(1);
76
        break;
77
    }
78

  
60 79
    xen_be_register("console", &xen_console_ops);
61 80
    xen_be_register("vkbd", &xen_kbdmouse_ops);
62 81
    xen_be_register("vfb", &xen_framebuffer_ops);

Also available in: Unified diff