diff options
Diffstat (limited to 'hw/xen_machine_pv.c')
-rw-r--r-- | hw/xen_machine_pv.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hw/xen_machine_pv.c b/hw/xen_machine_pv.c index 58209b89a9..f59f633a8c 100644 --- a/hw/xen_machine_pv.c +++ b/hw/xen_machine_pv.c @@ -110,9 +110,16 @@ static void xen_init_pv(ram_addr_t ram_size, int vga_ram_size, xen_init_display(xen_domid); } -QEMUMachine xenpv_machine = { +static QEMUMachine xenpv_machine = { .name = "xenpv", .desc = "Xen Para-virtualized PC", .init = xen_init_pv, .max_cpus = 1, }; + +static void xenpv_machine_init(void) +{ + qemu_register_machine(&xenpv_machine); +} + +machine_init(xenpv_machine_init); |