Revision 28695489 hw/xen_machine_pv.c

b/hw/xen_machine_pv.c
42 42
    CPUState *env;
43 43
    DriveInfo *dinfo;
44 44
    int i;
45
    static Notifier exit_notifier = { .notify = xen_config_cleanup };
46 45

  
47 46
    /* Initialize a dummy CPU */
48 47
    if (cpu_model == NULL) {
......
106 105
    }
107 106

  
108 107
    /* config cleanup hook */
109
    exit_notifier_add(&exit_notifier);
108
    atexit(xen_config_cleanup);
110 109

  
111 110
    /* setup framebuffer */
112 111
    xen_init_display(xen_domid);

Also available in: Unified diff