2 * QEMU PC System Emulator
4 * Copyright (c) 2003-2004 Fabrice Bellard
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28 #include "hw/loader.h"
29 #include "hw/i386/pc.h"
30 #include "hw/i386/apic.h"
31 #include "hw/i386/smbios.h"
32 #include "hw/pci/pci.h"
33 #include "hw/pci/pci_ids.h"
36 #include "hw/boards.h"
38 #include "sysemu/kvm.h"
39 #include "hw/kvm/clock.h"
40 #include "sysemu/sysemu.h"
41 #include "hw/sysbus.h"
42 #include "hw/cpu/icc_bus.h"
43 #include "sysemu/arch_init.h"
44 #include "sysemu/blockdev.h"
45 #include "hw/i2c/smbus.h"
46 #include "hw/xen/xen.h"
47 #include "exec/memory.h"
48 #include "exec/address-spaces.h"
49 #include "hw/acpi/acpi.h"
52 # include <xen/hvm/hvm_info_table.h>
57 static const int ide_iobase
[MAX_IDE_BUS
] = { 0x1f0, 0x170 };
58 static const int ide_iobase2
[MAX_IDE_BUS
] = { 0x3f6, 0x376 };
59 static const int ide_irq
[MAX_IDE_BUS
] = { 14, 15 };
61 static bool has_pci_info
;
62 static bool has_acpi_build
= true;
63 static bool smbios_defaults
= true;
64 static bool smbios_legacy_mode
;
65 /* Make sure that guest addresses aligned at 1Gbyte boundaries get mapped to
66 * host addresses aligned at 1Gbyte boundaries. This way we can use 1GByte
69 static bool gigabyte_align
= true;
70 static bool has_reserved_memory
= true;
72 /* PC hardware initialisation */
73 static void pc_init1(MachineState
*machine
,
77 PCMachineState
*pc_machine
= PC_MACHINE(machine
);
78 MemoryRegion
*system_memory
= get_system_memory();
79 MemoryRegion
*system_io
= get_system_io();
81 ram_addr_t below_4g_mem_size
, above_4g_mem_size
;
84 PCII440FXState
*i440fx_state
;
91 DriveInfo
*hd
[MAX_IDE_BUS
* MAX_IDE_DEVS
];
92 BusState
*idebus
[MAX_IDE_BUS
];
95 MemoryRegion
*ram_memory
;
96 MemoryRegion
*pci_memory
;
97 MemoryRegion
*rom_memory
;
98 DeviceState
*icc_bridge
;
99 FWCfgState
*fw_cfg
= NULL
;
100 PcGuestInfo
*guest_info
;
102 if (xen_enabled() && xen_hvm_init(&ram_memory
) != 0) {
103 fprintf(stderr
, "xen hardware virtual machine initialisation failed\n");
107 icc_bridge
= qdev_create(NULL
, TYPE_ICC_BRIDGE
);
108 object_property_add_child(qdev_get_machine(), "icc-bridge",
109 OBJECT(icc_bridge
), NULL
);
111 pc_cpus_init(machine
->cpu_model
, icc_bridge
);
113 if (kvm_enabled() && kvmclock_enabled
) {
117 /* Check whether RAM fits below 4G (leaving 1/2 GByte for IO memory).
118 * If it doesn't, we need to split it in chunks below and above 4G.
119 * In any case, try to make sure that guest addresses aligned at
120 * 1G boundaries get mapped to host addresses aligned at 1G boundaries.
121 * For old machine types, use whatever split we used historically to avoid
122 * breaking migration.
124 if (machine
->ram_size
>= 0xe0000000) {
125 ram_addr_t lowmem
= gigabyte_align ?
0xc0000000 : 0xe0000000;
126 above_4g_mem_size
= machine
->ram_size
- lowmem
;
127 below_4g_mem_size
= lowmem
;
129 above_4g_mem_size
= 0;
130 below_4g_mem_size
= machine
->ram_size
;
134 pci_memory
= g_new(MemoryRegion
, 1);
135 memory_region_init(pci_memory
, NULL
, "pci", UINT64_MAX
);
136 rom_memory
= pci_memory
;
139 rom_memory
= system_memory
;
142 guest_info
= pc_guest_info_init(below_4g_mem_size
, above_4g_mem_size
);
144 guest_info
->has_acpi_build
= has_acpi_build
;
146 guest_info
->has_pci_info
= has_pci_info
;
147 guest_info
->isapc_ram_fw
= !pci_enabled
;
148 guest_info
->has_reserved_memory
= has_reserved_memory
;
150 if (smbios_defaults
) {
151 MachineClass
*mc
= MACHINE_GET_CLASS(machine
);
152 /* These values are guest ABI, do not change */
153 smbios_set_defaults("QEMU", "Standard PC (i440FX + PIIX, 1996)",
154 mc
->name
, smbios_legacy_mode
);
157 /* allocate ram and load rom/bios */
158 if (!xen_enabled()) {
159 fw_cfg
= pc_memory_init(machine
, system_memory
,
160 below_4g_mem_size
, above_4g_mem_size
,
161 rom_memory
, &ram_memory
, guest_info
);
164 gsi_state
= g_malloc0(sizeof(*gsi_state
));
165 if (kvm_irqchip_in_kernel()) {
166 kvm_pc_setup_irq_routing(pci_enabled
);
167 gsi
= qemu_allocate_irqs(kvm_pc_gsi_handler
, gsi_state
,
170 gsi
= qemu_allocate_irqs(gsi_handler
, gsi_state
, GSI_NUM_PINS
);
174 pci_bus
= i440fx_init(&i440fx_state
, &piix3_devfn
, &isa_bus
, gsi
,
175 system_memory
, system_io
, machine
->ram_size
,
178 pci_memory
, ram_memory
);
182 isa_bus
= isa_bus_new(NULL
, system_io
);
185 isa_bus_irqs(isa_bus
, gsi
);
187 if (kvm_irqchip_in_kernel()) {
188 i8259
= kvm_i8259_init(isa_bus
);
189 } else if (xen_enabled()) {
190 i8259
= xen_interrupt_controller_init();
192 cpu_irq
= pc_allocate_cpu_irq();
193 i8259
= i8259_init(isa_bus
, cpu_irq
[0]);
196 for (i
= 0; i
< ISA_NUM_IRQS
; i
++) {
197 gsi_state
->i8259_irq
[i
] = i8259
[i
];
200 ioapic_init_gsi(gsi_state
, "i440fx");
202 qdev_init_nofail(icc_bridge
);
204 pc_register_ferr_irq(gsi
[13]);
206 pc_vga_init(isa_bus
, pci_enabled ? pci_bus
: NULL
);
208 /* init basic PC hardware */
209 pc_basic_device_init(isa_bus
, gsi
, &rtc_state
, &floppy
, xen_enabled(),
212 pc_nic_init(isa_bus
, pci_bus
);
214 ide_drive_get(hd
, MAX_IDE_BUS
);
218 dev
= pci_piix3_xen_ide_init(pci_bus
, hd
, piix3_devfn
+ 1);
220 dev
= pci_piix3_ide_init(pci_bus
, hd
, piix3_devfn
+ 1);
222 idebus
[0] = qdev_get_child_bus(&dev
->qdev
, "ide.0");
223 idebus
[1] = qdev_get_child_bus(&dev
->qdev
, "ide.1");
225 for(i
= 0; i
< MAX_IDE_BUS
; i
++) {
227 char busname
[] = "ide.0";
228 dev
= isa_ide_init(isa_bus
, ide_iobase
[i
], ide_iobase2
[i
],
230 hd
[MAX_IDE_DEVS
* i
], hd
[MAX_IDE_DEVS
* i
+ 1]);
232 * The ide bus name is ide.0 for the first bus and ide.1 for the
235 busname
[4] = '0' + i
;
236 idebus
[i
] = qdev_get_child_bus(DEVICE(dev
), busname
);
240 pc_cmos_init(below_4g_mem_size
, above_4g_mem_size
, machine
->boot_order
,
241 floppy
, idebus
[0], idebus
[1], rtc_state
);
243 if (pci_enabled
&& usb_enabled(false)) {
244 pci_create_simple(pci_bus
, piix3_devfn
+ 2, "piix3-usb-uhci");
247 if (pci_enabled
&& acpi_enabled
) {
248 DeviceState
*piix4_pm
;
251 smi_irq
= qemu_allocate_irqs(pc_acpi_smi_interrupt
, first_cpu
, 1);
252 /* TODO: Populate SPD eeprom data. */
253 smbus
= piix4_pm_init(pci_bus
, piix3_devfn
+ 3, 0xb100,
255 kvm_enabled(), fw_cfg
, &piix4_pm
);
256 smbus_eeprom_init(smbus
, 8, NULL
, 0);
258 object_property_add_link(OBJECT(machine
), PC_MACHINE_ACPI_DEVICE_PROP
,
259 TYPE_HOTPLUG_HANDLER
,
260 (Object
**)&pc_machine
->acpi_dev
,
261 object_property_allow_set_link
,
262 OBJ_PROP_LINK_UNREF_ON_RELEASE
, &error_abort
);
263 object_property_set_link(OBJECT(machine
), OBJECT(piix4_pm
),
264 PC_MACHINE_ACPI_DEVICE_PROP
, &error_abort
);
268 pc_pci_device_init(pci_bus
);
272 static void pc_init_pci(MachineState
*machine
)
274 pc_init1(machine
, 1, 1);
277 static void pc_compat_2_0(MachineState
*machine
)
279 smbios_legacy_mode
= true;
280 has_reserved_memory
= false;
283 static void pc_compat_1_7(MachineState
*machine
)
285 pc_compat_2_0(machine
);
286 smbios_defaults
= false;
287 gigabyte_align
= false;
288 option_rom_has_mr
= true;
289 x86_cpu_compat_disable_kvm_features(FEAT_1_ECX
, CPUID_EXT_X2APIC
);
292 static void pc_compat_1_6(MachineState
*machine
)
294 pc_compat_1_7(machine
);
295 has_pci_info
= false;
296 rom_file_has_mr
= false;
297 has_acpi_build
= false;
300 static void pc_compat_1_5(MachineState
*machine
)
302 pc_compat_1_6(machine
);
305 static void pc_compat_1_4(MachineState
*machine
)
307 pc_compat_1_5(machine
);
308 x86_cpu_compat_set_features("n270", FEAT_1_ECX
, 0, CPUID_EXT_MOVBE
);
309 x86_cpu_compat_set_features("Westmere", FEAT_1_ECX
, 0, CPUID_EXT_PCLMULQDQ
);
312 static void pc_compat_1_3(MachineState
*machine
)
314 pc_compat_1_4(machine
);
315 enable_compat_apic_id_mode();
318 /* PC compat function for pc-0.14 to pc-1.2 */
319 static void pc_compat_1_2(MachineState
*machine
)
321 pc_compat_1_3(machine
);
322 x86_cpu_compat_disable_kvm_features(FEAT_KVM
, KVM_FEATURE_PV_EOI
);
325 static void pc_init_pci_2_0(MachineState
*machine
)
327 pc_compat_2_0(machine
);
328 pc_init_pci(machine
);
331 static void pc_init_pci_1_7(MachineState
*machine
)
333 pc_compat_1_7(machine
);
334 pc_init_pci(machine
);
337 static void pc_init_pci_1_6(MachineState
*machine
)
339 pc_compat_1_6(machine
);
340 pc_init_pci(machine
);
343 static void pc_init_pci_1_5(MachineState
*machine
)
345 pc_compat_1_5(machine
);
346 pc_init_pci(machine
);
349 static void pc_init_pci_1_4(MachineState
*machine
)
351 pc_compat_1_4(machine
);
352 pc_init_pci(machine
);
355 static void pc_init_pci_1_3(MachineState
*machine
)
357 pc_compat_1_3(machine
);
358 pc_init_pci(machine
);
361 /* PC machine init function for pc-0.14 to pc-1.2 */
362 static void pc_init_pci_1_2(MachineState
*machine
)
364 pc_compat_1_2(machine
);
365 pc_init_pci(machine
);
368 /* PC init function for pc-0.10 to pc-0.13, and reused by xenfv */
369 static void pc_init_pci_no_kvmclock(MachineState
*machine
)
371 has_pci_info
= false;
372 has_acpi_build
= false;
373 smbios_defaults
= false;
374 x86_cpu_compat_disable_kvm_features(FEAT_KVM
, KVM_FEATURE_PV_EOI
);
375 enable_compat_apic_id_mode();
376 pc_init1(machine
, 1, 0);
379 static void pc_init_isa(MachineState
*machine
)
381 has_pci_info
= false;
382 has_acpi_build
= false;
383 smbios_defaults
= false;
384 if (!machine
->cpu_model
) {
385 machine
->cpu_model
= "486";
387 x86_cpu_compat_disable_kvm_features(FEAT_KVM
, KVM_FEATURE_PV_EOI
);
388 enable_compat_apic_id_mode();
389 pc_init1(machine
, 0, 1);
393 static void pc_xen_hvm_init(MachineState
*machine
)
397 pc_init_pci(machine
);
399 bus
= pci_find_primary_bus();
401 pci_create_simple(bus
, -1, "xen-platform");
406 #define PC_I440FX_MACHINE_OPTIONS \
407 PC_DEFAULT_MACHINE_OPTIONS, \
408 .desc = "Standard PC (i440FX + PIIX, 1996)", \
409 .hot_add_cpu = pc_hot_add_cpu
411 #define PC_I440FX_2_1_MACHINE_OPTIONS \
412 PC_I440FX_MACHINE_OPTIONS, \
413 .default_machine_opts = "firmware=bios-256k.bin"
415 static QEMUMachine pc_i440fx_machine_v2_1
= {
416 PC_I440FX_2_1_MACHINE_OPTIONS
,
417 .name
= "pc-i440fx-2.1",
423 #define PC_I440FX_2_0_MACHINE_OPTIONS PC_I440FX_2_1_MACHINE_OPTIONS
425 static QEMUMachine pc_i440fx_machine_v2_0
= {
426 PC_I440FX_2_0_MACHINE_OPTIONS
,
427 .name
= "pc-i440fx-2.0",
428 .init
= pc_init_pci_2_0
,
429 .compat_props
= (GlobalProperty
[]) {
431 { /* end of list */ }
435 #define PC_I440FX_1_7_MACHINE_OPTIONS PC_I440FX_MACHINE_OPTIONS
437 static QEMUMachine pc_i440fx_machine_v1_7
= {
438 PC_I440FX_1_7_MACHINE_OPTIONS
,
439 .name
= "pc-i440fx-1.7",
440 .init
= pc_init_pci_1_7
,
441 .compat_props
= (GlobalProperty
[]) {
443 { /* end of list */ }
447 #define PC_I440FX_1_6_MACHINE_OPTIONS PC_I440FX_MACHINE_OPTIONS
449 static QEMUMachine pc_i440fx_machine_v1_6
= {
450 PC_I440FX_1_6_MACHINE_OPTIONS
,
451 .name
= "pc-i440fx-1.6",
452 .init
= pc_init_pci_1_6
,
453 .compat_props
= (GlobalProperty
[]) {
455 { /* end of list */ }
459 static QEMUMachine pc_i440fx_machine_v1_5
= {
460 PC_I440FX_1_6_MACHINE_OPTIONS
,
461 .name
= "pc-i440fx-1.5",
462 .init
= pc_init_pci_1_5
,
463 .compat_props
= (GlobalProperty
[]) {
465 { /* end of list */ }
469 #define PC_I440FX_1_4_MACHINE_OPTIONS \
470 PC_I440FX_1_6_MACHINE_OPTIONS, \
473 static QEMUMachine pc_i440fx_machine_v1_4
= {
474 PC_I440FX_1_4_MACHINE_OPTIONS
,
475 .name
= "pc-i440fx-1.4",
476 .init
= pc_init_pci_1_4
,
477 .compat_props
= (GlobalProperty
[]) {
479 { /* end of list */ }
483 #define PC_COMPAT_1_3 \
486 .driver = "usb-tablet",\
487 .property = "usb_version",\
488 .value = stringify(1),\
490 .driver = "virtio-net-pci",\
491 .property = "ctrl_mac_addr",\
494 .driver = "virtio-net-pci", \
499 .property = "autonegotiation",\
503 static QEMUMachine pc_machine_v1_3
= {
504 PC_I440FX_1_4_MACHINE_OPTIONS
,
506 .init
= pc_init_pci_1_3
,
507 .compat_props
= (GlobalProperty
[]) {
509 { /* end of list */ }
513 #define PC_COMPAT_1_2 \
516 .driver = "nec-usb-xhci",\
520 .driver = "nec-usb-xhci",\
524 .driver = "ivshmem",\
525 .property = "use64",\
529 .property = "revision",\
530 .value = stringify(3),\
532 .driver = "qxl-vga",\
533 .property = "revision",\
534 .value = stringify(3),\
541 #define PC_I440FX_1_2_MACHINE_OPTIONS \
542 PC_I440FX_1_4_MACHINE_OPTIONS, \
543 .init = pc_init_pci_1_2
545 static QEMUMachine pc_machine_v1_2
= {
546 PC_I440FX_1_2_MACHINE_OPTIONS
,
548 .compat_props
= (GlobalProperty
[]) {
550 { /* end of list */ }
554 #define PC_COMPAT_1_1 \
557 .driver = "virtio-scsi-pci",\
558 .property = "hotplug",\
561 .driver = "virtio-scsi-pci",\
562 .property = "param_change",\
566 .property = "vgamem_mb",\
567 .value = stringify(8),\
569 .driver = "vmware-svga",\
570 .property = "vgamem_mb",\
571 .value = stringify(8),\
573 .driver = "qxl-vga",\
574 .property = "vgamem_mb",\
575 .value = stringify(8),\
578 .property = "vgamem_mb",\
579 .value = stringify(8),\
581 .driver = "virtio-blk-pci",\
582 .property = "config-wce",\
586 static QEMUMachine pc_machine_v1_1
= {
587 PC_I440FX_1_2_MACHINE_OPTIONS
,
589 .compat_props
= (GlobalProperty
[]) {
591 { /* end of list */ }
595 #define PC_COMPAT_1_0 \
598 .driver = TYPE_ISA_FDC,\
599 .property = "check_media_rate",\
602 .driver = "virtio-balloon-pci",\
603 .property = "class",\
604 .value = stringify(PCI_CLASS_MEMORY_RAM),\
607 .property = "vapic",\
610 .driver = TYPE_USB_DEVICE,\
611 .property = "full-path",\
615 static QEMUMachine pc_machine_v1_0
= {
616 PC_I440FX_1_2_MACHINE_OPTIONS
,
618 .compat_props
= (GlobalProperty
[]) {
620 { /* end of list */ }
625 #define PC_COMPAT_0_15 \
628 static QEMUMachine pc_machine_v0_15
= {
629 PC_I440FX_1_2_MACHINE_OPTIONS
,
631 .compat_props
= (GlobalProperty
[]) {
633 { /* end of list */ }
635 .hw_version
= "0.15",
638 #define PC_COMPAT_0_14 \
641 .driver = "virtio-blk-pci",\
642 .property = "event_idx",\
645 .driver = "virtio-serial-pci",\
646 .property = "event_idx",\
649 .driver = "virtio-net-pci",\
650 .property = "event_idx",\
653 .driver = "virtio-balloon-pci",\
654 .property = "event_idx",\
658 static QEMUMachine pc_machine_v0_14
= {
659 PC_I440FX_1_2_MACHINE_OPTIONS
,
661 .compat_props
= (GlobalProperty
[]) {
665 .property
= "revision",
666 .value
= stringify(2),
669 .property
= "revision",
670 .value
= stringify(2),
672 { /* end of list */ }
674 .hw_version
= "0.14",
677 #define PC_COMPAT_0_13 \
680 .driver = TYPE_PCI_DEVICE,\
681 .property = "command_serr_enable",\
685 .property = "use_broken_id",\
686 .value = stringify(1),\
689 #define PC_I440FX_0_13_MACHINE_OPTIONS \
690 PC_I440FX_1_2_MACHINE_OPTIONS, \
691 .init = pc_init_pci_no_kvmclock
693 static QEMUMachine pc_machine_v0_13
= {
694 PC_I440FX_0_13_MACHINE_OPTIONS
,
696 .compat_props
= (GlobalProperty
[]) {
699 .driver
= "virtio-9p-pci",
700 .property
= "vectors",
701 .value
= stringify(0),
704 .property
= "rombar",
705 .value
= stringify(0),
707 .driver
= "vmware-svga",
708 .property
= "rombar",
709 .value
= stringify(0),
711 { /* end of list */ }
713 .hw_version
= "0.13",
716 #define PC_COMPAT_0_12 \
719 .driver = "virtio-serial-pci",\
720 .property = "max_ports",\
721 .value = stringify(1),\
723 .driver = "virtio-serial-pci",\
724 .property = "vectors",\
725 .value = stringify(0),\
727 .driver = "usb-mouse",\
728 .property = "serial",\
731 .driver = "usb-tablet",\
732 .property = "serial",\
735 .driver = "usb-kbd",\
736 .property = "serial",\
740 static QEMUMachine pc_machine_v0_12
= {
741 PC_I440FX_0_13_MACHINE_OPTIONS
,
743 .compat_props
= (GlobalProperty
[]) {
747 .property
= "rombar",
748 .value
= stringify(0),
750 .driver
= "vmware-svga",
751 .property
= "rombar",
752 .value
= stringify(0),
754 { /* end of list */ }
756 .hw_version
= "0.12",
759 #define PC_COMPAT_0_11 \
762 .driver = "virtio-blk-pci",\
763 .property = "vectors",\
764 .value = stringify(0),\
766 .driver = TYPE_PCI_DEVICE,\
767 .property = "rombar",\
768 .value = stringify(0),\
771 static QEMUMachine pc_machine_v0_11
= {
772 PC_I440FX_0_13_MACHINE_OPTIONS
,
774 .compat_props
= (GlobalProperty
[]) {
777 .driver
= "ide-drive",
781 .driver
= "scsi-disk",
785 { /* end of list */ }
787 .hw_version
= "0.11",
790 static QEMUMachine pc_machine_v0_10
= {
791 PC_I440FX_0_13_MACHINE_OPTIONS
,
793 .compat_props
= (GlobalProperty
[]) {
796 .driver
= "virtio-blk-pci",
798 .value
= stringify(PCI_CLASS_STORAGE_OTHER
),
800 .driver
= "virtio-serial-pci",
802 .value
= stringify(PCI_CLASS_DISPLAY_OTHER
),
804 .driver
= "virtio-net-pci",
805 .property
= "vectors",
806 .value
= stringify(0),
808 .driver
= "ide-drive",
812 .driver
= "scsi-disk",
816 { /* end of list */ }
818 .hw_version
= "0.10",
821 static QEMUMachine isapc_machine
= {
822 PC_COMMON_MACHINE_OPTIONS
,
824 .desc
= "ISA-only PC",
827 .compat_props
= (GlobalProperty
[]) {
828 { /* end of list */ }
833 static QEMUMachine xenfv_machine
= {
834 PC_COMMON_MACHINE_OPTIONS
,
836 .desc
= "Xen Fully-virtualized PC",
837 .init
= pc_xen_hvm_init
,
838 .max_cpus
= HVM_MAX_VCPUS
,
839 .default_machine_opts
= "accel=xen",
840 .hot_add_cpu
= pc_hot_add_cpu
,
841 .compat_props
= (GlobalProperty
[]) {
842 /* xenfv has no fwcfg and so does not load acpi from QEMU.
843 * as such new acpi features don't work.
846 .driver
= "PIIX4_PM",
847 .property
= "acpi-pci-hotplug-with-bridge-support",
850 { /* end of list */ }
855 static void pc_machine_init(void)
857 qemu_register_pc_machine(&pc_i440fx_machine_v2_1
);
858 qemu_register_pc_machine(&pc_i440fx_machine_v2_0
);
859 qemu_register_pc_machine(&pc_i440fx_machine_v1_7
);
860 qemu_register_pc_machine(&pc_i440fx_machine_v1_6
);
861 qemu_register_pc_machine(&pc_i440fx_machine_v1_5
);
862 qemu_register_pc_machine(&pc_i440fx_machine_v1_4
);
863 qemu_register_pc_machine(&pc_machine_v1_3
);
864 qemu_register_pc_machine(&pc_machine_v1_2
);
865 qemu_register_pc_machine(&pc_machine_v1_1
);
866 qemu_register_pc_machine(&pc_machine_v1_0
);
867 qemu_register_pc_machine(&pc_machine_v0_15
);
868 qemu_register_pc_machine(&pc_machine_v0_14
);
869 qemu_register_pc_machine(&pc_machine_v0_13
);
870 qemu_register_pc_machine(&pc_machine_v0_12
);
871 qemu_register_pc_machine(&pc_machine_v0_11
);
872 qemu_register_pc_machine(&pc_machine_v0_10
);
873 qemu_register_pc_machine(&isapc_machine
);
875 qemu_register_pc_machine(&xenfv_machine
);
879 machine_init(pc_machine_init
);