4 #include "qemu-common.h"
5 #include "exec/memory.h"
7 #include "hw/isa/isa.h"
8 #include "hw/block/fdc.h"
10 #include "hw/i386/ioapic.h"
12 #include "qemu/range.h"
13 #include "qemu/bitmap.h"
14 #include "sysemu/sysemu.h"
15 #include "hw/pci/pci.h"
16 #include "hw/boards.h"
17 #include "hw/compat.h"
18 #include "hw/mem/pc-dimm.h"
19 #include "hw/mem/nvdimm.h"
21 #define HPET_INTCAP "hpet-intcap"
24 #define kvm_pit_in_kernel() \
25 (kvm_irqchip_in_kernel() && !kvm_irqchip_is_split())
26 #define kvm_pic_in_kernel() \
27 (kvm_irqchip_in_kernel() && !kvm_irqchip_is_split())
28 #define kvm_ioapic_in_kernel() \
29 (kvm_irqchip_in_kernel() && !kvm_irqchip_is_split())
31 #define kvm_pit_in_kernel() 0
32 #define kvm_pic_in_kernel() 0
33 #define kvm_ioapic_in_kernel() 0
38 * @acpi_dev: link to ACPI PM device that performs ACPI hotplug handling
40 struct PCMachineState
{
42 MachineState parent_obj
;
46 /* State for other subsystems/APIs: */
47 MemoryHotplugState hotplug_memory
;
48 Notifier machine_done
;
50 /* Pointers to devices and objects: */
51 HotplugHandler
*acpi_dev
;
56 /* Configuration options: */
57 uint64_t max_ram_below_4g
;
61 AcpiNVDIMMState acpi_nvdimm_state
;
63 /* RAM information (sizes, addresses, configuration): */
64 ram_addr_t below_4g_mem_size
, above_4g_mem_size
;
66 /* CPU and apic information: */
67 bool apic_xrupt_override
;
68 unsigned apic_id_limit
;
69 CPUArchIdList
*possible_cpus
;
71 /* NUMA information: */
77 #define PC_MACHINE_ACPI_DEVICE_PROP "acpi-device"
78 #define PC_MACHINE_MEMHP_REGION_SIZE "hotplug-memory-region-size"
79 #define PC_MACHINE_MAX_RAM_BELOW_4G "max-ram-below-4g"
80 #define PC_MACHINE_VMPORT "vmport"
81 #define PC_MACHINE_SMM "smm"
82 #define PC_MACHINE_NVDIMM "nvdimm"
89 * @get_hotplug_handler: pointer to parent class callback @get_hotplug_handler
93 * @enforce_aligned_dimm: check that DIMM's address/size is aligned by
94 * backend's alignment value if provided
95 * @acpi_data_size: Size of the chunk of memory at the top of RAM
96 * for the BIOS ACPI tables and other BIOS
98 * @gigabyte_align: Make sure that guest addresses aligned at
99 * 1Gbyte boundaries get mapped to host
100 * addresses aligned at 1Gbyte boundaries. This
101 * way we can use 1GByte pages in the host.
104 struct PCMachineClass
{
106 MachineClass parent_class
;
111 HotplugHandler
*(*get_hotplug_handler
)(MachineState
*machine
,
114 /* Device configuration: */
116 bool kvmclock_enabled
;
118 /* Compat options: */
123 int legacy_acpi_table_size
;
124 unsigned acpi_data_size
;
127 bool smbios_defaults
;
128 bool smbios_legacy_mode
;
129 bool smbios_uuid_encoded
;
131 /* RAM / address space compat: */
133 bool has_reserved_memory
;
134 bool enforce_aligned_dimm
;
135 bool broken_reserved_end
;
137 /* TSC rate migration: */
141 #define TYPE_PC_MACHINE "generic-pc-machine"
142 #define PC_MACHINE(obj) \
143 OBJECT_CHECK(PCMachineState, (obj), TYPE_PC_MACHINE)
144 #define PC_MACHINE_GET_CLASS(obj) \
145 OBJECT_GET_CLASS(PCMachineClass, (obj), TYPE_PC_MACHINE)
146 #define PC_MACHINE_CLASS(klass) \
147 OBJECT_CLASS_CHECK(PCMachineClass, (klass), TYPE_PC_MACHINE)
149 /* PC-style peripherals (also used by other machines). */
151 typedef struct PcPciInfo
{
156 #define ACPI_PM_PROP_S3_DISABLED "disable_s3"
157 #define ACPI_PM_PROP_S4_DISABLED "disable_s4"
158 #define ACPI_PM_PROP_S4_VAL "s4_val"
159 #define ACPI_PM_PROP_SCI_INT "sci_int"
160 #define ACPI_PM_PROP_ACPI_ENABLE_CMD "acpi_enable_cmd"
161 #define ACPI_PM_PROP_ACPI_DISABLE_CMD "acpi_disable_cmd"
162 #define ACPI_PM_PROP_PM_IO_BASE "pm_io_base"
163 #define ACPI_PM_PROP_GPE0_BLK "gpe0_blk"
164 #define ACPI_PM_PROP_GPE0_BLK_LEN "gpe0_blk_len"
165 #define ACPI_PM_PROP_TCO_ENABLED "enable_tco"
169 void parallel_hds_isa_init(ISABus
*bus
, int n
);
171 bool parallel_mm_init(MemoryRegion
*address_space
,
172 hwaddr base
, int it_shift
, qemu_irq irq
,
173 CharDriverState
*chr
);
177 extern DeviceState
*isa_pic
;
178 qemu_irq
*i8259_init(ISABus
*bus
, qemu_irq parent_irq
);
179 qemu_irq
*kvm_i8259_init(ISABus
*bus
);
180 int pic_read_irq(DeviceState
*d
);
181 int pic_get_output(DeviceState
*d
);
182 void hmp_info_pic(Monitor
*mon
, const QDict
*qdict
);
183 void hmp_info_irq(Monitor
*mon
, const QDict
*qdict
);
187 void kvm_ioapic_dump_state(Monitor
*mon
, const QDict
*qdict
);
188 void ioapic_dump_state(Monitor
*mon
, const QDict
*qdict
);
190 /* Global System Interrupts */
192 #define GSI_NUM_PINS IOAPIC_NUM_PINS
194 typedef struct GSIState
{
195 qemu_irq i8259_irq
[ISA_NUM_IRQS
];
196 qemu_irq ioapic_irq
[IOAPIC_NUM_PINS
];
199 void gsi_handler(void *opaque
, int n
, int level
);
202 typedef uint32_t (VMPortReadFunc
)(void *opaque
, uint32_t address
);
204 static inline void vmport_init(ISABus
*bus
)
206 isa_create_simple(bus
, "vmport");
209 void vmport_register(unsigned char command
, VMPortReadFunc
*func
, void *opaque
);
210 void vmmouse_get_data(uint32_t *data
);
211 void vmmouse_set_data(const uint32_t *data
);
215 void i8042_init(qemu_irq kbd_irq
, qemu_irq mouse_irq
, uint32_t io_base
);
216 void i8042_mm_init(qemu_irq kbd_irq
, qemu_irq mouse_irq
,
217 MemoryRegion
*region
, ram_addr_t size
,
219 void i8042_isa_mouse_fake_event(void *opaque
);
220 void i8042_setup_a20_line(ISADevice
*dev
, qemu_irq
*a20_out
);
223 extern int fd_bootchk
;
225 bool pc_machine_is_smm_enabled(PCMachineState
*pcms
);
226 void pc_register_ferr_irq(qemu_irq irq
);
227 void pc_acpi_smi_interrupt(void *opaque
, int irq
, int level
);
229 void pc_cpus_init(PCMachineState
*pcms
);
230 void pc_hot_add_cpu(const int64_t id
, Error
**errp
);
231 void pc_acpi_init(const char *default_dsdt
);
233 void pc_guest_info_init(PCMachineState
*pcms
);
235 #define PCI_HOST_PROP_PCI_HOLE_START "pci-hole-start"
236 #define PCI_HOST_PROP_PCI_HOLE_END "pci-hole-end"
237 #define PCI_HOST_PROP_PCI_HOLE64_START "pci-hole64-start"
238 #define PCI_HOST_PROP_PCI_HOLE64_END "pci-hole64-end"
239 #define PCI_HOST_PROP_PCI_HOLE64_SIZE "pci-hole64-size"
240 #define DEFAULT_PCI_HOLE64_SIZE (~0x0ULL)
243 void pc_pci_as_mapping_init(Object
*owner
, MemoryRegion
*system_memory
,
244 MemoryRegion
*pci_address_space
);
246 void xen_load_linux(PCMachineState
*pcms
);
247 void pc_memory_init(PCMachineState
*pcms
,
248 MemoryRegion
*system_memory
,
249 MemoryRegion
*rom_memory
,
250 MemoryRegion
**ram_memory
);
251 qemu_irq
pc_allocate_cpu_irq(void);
252 DeviceState
*pc_vga_init(ISABus
*isa_bus
, PCIBus
*pci_bus
);
253 void pc_basic_device_init(ISABus
*isa_bus
, qemu_irq
*gsi
,
254 ISADevice
**rtc_state
,
258 void pc_init_ne2k_isa(ISABus
*bus
, NICInfo
*nd
);
259 void pc_cmos_init(PCMachineState
*pcms
,
260 BusState
*ide0
, BusState
*ide1
,
262 void pc_nic_init(ISABus
*isa_bus
, PCIBus
*pci_bus
);
263 void pc_pci_device_init(PCIBus
*pci_bus
);
265 typedef void (*cpu_set_smm_t
)(int smm
, void *arg
);
267 void ioapic_init_gsi(GSIState
*gsi_state
, const char *parent_name
);
269 ISADevice
*pc_find_fdc0(void);
270 int cmos_get_fd_drive_type(FloppyDriveType fd0
);
272 #define FW_CFG_IO_BASE 0x510
276 I2CBus
*piix4_pm_init(PCIBus
*bus
, int devfn
, uint32_t smb_io_base
,
277 qemu_irq sci_irq
, qemu_irq smi_irq
,
278 int smm_enabled
, DeviceState
**piix4_pm
);
279 void piix4_smbus_register_device(SMBusDevice
*dev
, uint8_t addr
);
285 struct PCII440FXState
;
286 typedef struct PCII440FXState PCII440FXState
;
288 #define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
289 #define TYPE_I440FX_PCI_DEVICE "i440FX"
291 #define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
293 PCIBus
*i440fx_init(const char *host_type
, const char *pci_type
,
294 PCII440FXState
**pi440fx_state
, int *piix_devfn
,
295 ISABus
**isa_bus
, qemu_irq
*pic
,
296 MemoryRegion
*address_space_mem
,
297 MemoryRegion
*address_space_io
,
299 ram_addr_t below_4g_mem_size
,
300 ram_addr_t above_4g_mem_size
,
301 MemoryRegion
*pci_memory
,
302 MemoryRegion
*ram_memory
);
304 PCIBus
*find_i440fx(void);
306 extern PCIDevice
*piix4_dev
;
307 int piix4_init(PCIBus
*bus
, ISABus
**isa_bus
, int devfn
);
310 enum vga_retrace_method
{
315 extern enum vga_retrace_method vga_retrace_method
;
317 int isa_vga_mm_init(hwaddr vram_base
,
318 hwaddr ctrl_base
, int it_shift
,
319 MemoryRegion
*address_space
);
322 static inline bool isa_ne2000_init(ISABus
*bus
, int base
, int irq
, NICInfo
*nd
)
327 qemu_check_nic_model(nd
, "ne2k_isa");
329 isadev
= isa_try_create(bus
, "ne2k_isa");
333 dev
= DEVICE(isadev
);
334 qdev_prop_set_uint32(dev
, "iobase", base
);
335 qdev_prop_set_uint32(dev
, "irq", irq
);
336 qdev_set_nic_properties(dev
, nd
);
337 qdev_init_nofail(dev
);
342 void pc_system_firmware_init(MemoryRegion
*rom_memory
,
346 uint16_t pvpanic_port(void);
350 #define E820_RESERVED 2
353 #define E820_UNUSABLE 5
355 int e820_add_entry(uint64_t, uint64_t, uint32_t);
356 int e820_get_num_entries(void);
357 bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
359 #define PC_COMPAT_2_6 \
362 .driver = TYPE_X86_CPU,\
363 .property = "cpuid-0xb",\
366 .driver = "vmxnet3",\
367 .property = "romfile",\
371 #define PC_COMPAT_2_5 \
375 /* Helper for setting model-id for CPU models that changed model-id
376 * depending on QEMU versions up to QEMU 2.4.
378 #define PC_CPU_MODEL_IDS(v) \
380 .driver = "qemu32-" TYPE_X86_CPU,\
381 .property = "model-id",\
382 .value = "QEMU Virtual CPU version " v,\
385 .driver = "qemu64-" TYPE_X86_CPU,\
386 .property = "model-id",\
387 .value = "QEMU Virtual CPU version " v,\
390 .driver = "athlon-" TYPE_X86_CPU,\
391 .property = "model-id",\
392 .value = "QEMU Virtual CPU version " v,\
395 #define PC_COMPAT_2_4 \
397 PC_CPU_MODEL_IDS("2.4.0") \
399 .driver = "Haswell-" TYPE_X86_CPU,\
404 .driver = "Haswell-noTSX-" TYPE_X86_CPU,\
409 .driver = "Broadwell-" TYPE_X86_CPU,\
414 .driver = "Broadwell-noTSX-" TYPE_X86_CPU,\
419 .driver = "host" "-" TYPE_X86_CPU,\
420 .property = "host-cache-info",\
424 .driver = TYPE_X86_CPU,\
425 .property = "check",\
429 .driver = "qemu64" "-" TYPE_X86_CPU,\
430 .property = "sse4a",\
434 .driver = "qemu64" "-" TYPE_X86_CPU,\
439 .driver = "qemu64" "-" TYPE_X86_CPU,\
440 .property = "popcnt",\
444 .driver = "qemu32" "-" TYPE_X86_CPU,\
445 .property = "popcnt",\
448 .driver = "Opteron_G2" "-" TYPE_X86_CPU,\
449 .property = "rdtscp",\
452 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
453 .property = "rdtscp",\
456 .driver = "Opteron_G4" "-" TYPE_X86_CPU,\
457 .property = "rdtscp",\
460 .driver = "Opteron_G5" "-" TYPE_X86_CPU,\
461 .property = "rdtscp",\
466 #define PC_COMPAT_2_3 \
468 PC_CPU_MODEL_IDS("2.3.0") \
470 .driver = TYPE_X86_CPU,\
474 .driver = "qemu64" "-" TYPE_X86_CPU,\
475 .property = "level",\
476 .value = stringify(4),\
478 .driver = "kvm64" "-" TYPE_X86_CPU,\
479 .property = "level",\
480 .value = stringify(5),\
482 .driver = "pentium3" "-" TYPE_X86_CPU,\
483 .property = "level",\
484 .value = stringify(2),\
486 .driver = "n270" "-" TYPE_X86_CPU,\
487 .property = "level",\
488 .value = stringify(5),\
490 .driver = "Conroe" "-" TYPE_X86_CPU,\
491 .property = "level",\
492 .value = stringify(4),\
494 .driver = "Penryn" "-" TYPE_X86_CPU,\
495 .property = "level",\
496 .value = stringify(4),\
498 .driver = "Nehalem" "-" TYPE_X86_CPU,\
499 .property = "level",\
500 .value = stringify(4),\
502 .driver = "n270" "-" TYPE_X86_CPU,\
503 .property = "xlevel",\
504 .value = stringify(0x8000000a),\
506 .driver = "Penryn" "-" TYPE_X86_CPU,\
507 .property = "xlevel",\
508 .value = stringify(0x8000000a),\
510 .driver = "Conroe" "-" TYPE_X86_CPU,\
511 .property = "xlevel",\
512 .value = stringify(0x8000000a),\
514 .driver = "Nehalem" "-" TYPE_X86_CPU,\
515 .property = "xlevel",\
516 .value = stringify(0x8000000a),\
518 .driver = "Westmere" "-" TYPE_X86_CPU,\
519 .property = "xlevel",\
520 .value = stringify(0x8000000a),\
522 .driver = "SandyBridge" "-" TYPE_X86_CPU,\
523 .property = "xlevel",\
524 .value = stringify(0x8000000a),\
526 .driver = "IvyBridge" "-" TYPE_X86_CPU,\
527 .property = "xlevel",\
528 .value = stringify(0x8000000a),\
530 .driver = "Haswell" "-" TYPE_X86_CPU,\
531 .property = "xlevel",\
532 .value = stringify(0x8000000a),\
534 .driver = "Haswell-noTSX" "-" TYPE_X86_CPU,\
535 .property = "xlevel",\
536 .value = stringify(0x8000000a),\
538 .driver = "Broadwell" "-" TYPE_X86_CPU,\
539 .property = "xlevel",\
540 .value = stringify(0x8000000a),\
542 .driver = "Broadwell-noTSX" "-" TYPE_X86_CPU,\
543 .property = "xlevel",\
544 .value = stringify(0x8000000a),\
547 #define PC_COMPAT_2_2 \
549 PC_CPU_MODEL_IDS("2.3.0") \
551 .driver = "kvm64" "-" TYPE_X86_CPU,\
556 .driver = "kvm32" "-" TYPE_X86_CPU,\
561 .driver = "Conroe" "-" TYPE_X86_CPU,\
566 .driver = "Penryn" "-" TYPE_X86_CPU,\
571 .driver = "Nehalem" "-" TYPE_X86_CPU,\
576 .driver = "Westmere" "-" TYPE_X86_CPU,\
581 .driver = "SandyBridge" "-" TYPE_X86_CPU,\
586 .driver = "Haswell" "-" TYPE_X86_CPU,\
591 .driver = "Broadwell" "-" TYPE_X86_CPU,\
596 .driver = "Opteron_G1" "-" TYPE_X86_CPU,\
601 .driver = "Opteron_G2" "-" TYPE_X86_CPU,\
606 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
611 .driver = "Opteron_G4" "-" TYPE_X86_CPU,\
616 .driver = "Opteron_G5" "-" TYPE_X86_CPU,\
621 .driver = "Haswell" "-" TYPE_X86_CPU,\
626 .driver = "Haswell" "-" TYPE_X86_CPU,\
627 .property = "rdrand",\
631 .driver = "Broadwell" "-" TYPE_X86_CPU,\
636 .driver = "Broadwell" "-" TYPE_X86_CPU,\
637 .property = "rdrand",\
641 #define PC_COMPAT_2_1 \
643 PC_CPU_MODEL_IDS("2.1.0") \
645 .driver = "coreduo" "-" TYPE_X86_CPU,\
650 .driver = "core2duo" "-" TYPE_X86_CPU,\
655 #define PC_COMPAT_2_0 \
656 PC_CPU_MODEL_IDS("2.0.0") \
658 .driver = "virtio-scsi-pci",\
659 .property = "any_layout",\
662 .driver = "PIIX4_PM",\
663 .property = "memory-hotplug-support",\
668 .property = "version",\
669 .value = stringify(0x11),\
672 .driver = "nec-usb-xhci",\
673 .property = "superspeed-ports-first",\
677 .driver = "nec-usb-xhci",\
678 .property = "force-pcie-endcap",\
682 .driver = "pci-serial",\
683 .property = "prog_if",\
684 .value = stringify(0),\
687 .driver = "pci-serial-2x",\
688 .property = "prog_if",\
689 .value = stringify(0),\
692 .driver = "pci-serial-4x",\
693 .property = "prog_if",\
694 .value = stringify(0),\
697 .driver = "virtio-net-pci",\
698 .property = "guest_announce",\
702 .driver = "ICH9-LPC",\
703 .property = "memory-hotplug-support",\
706 .driver = "xio3130-downstream",\
707 .property = COMPAT_PROP_PCP,\
710 .driver = "ioh3420",\
711 .property = COMPAT_PROP_PCP,\
715 #define PC_COMPAT_1_7 \
716 PC_CPU_MODEL_IDS("1.7.0") \
718 .driver = TYPE_USB_DEVICE,\
719 .property = "msos-desc",\
723 .driver = "PIIX4_PM",\
724 .property = "acpi-pci-hotplug-with-bridge-support",\
729 .property = HPET_INTCAP,\
730 .value = stringify(4),\
733 #define PC_COMPAT_1_6 \
734 PC_CPU_MODEL_IDS("1.6.0") \
737 .property = "mitigation",\
740 .driver = "qemu64-" TYPE_X86_CPU,\
741 .property = "model",\
742 .value = stringify(2),\
744 .driver = "qemu32-" TYPE_X86_CPU,\
745 .property = "model",\
746 .value = stringify(3),\
748 .driver = "i440FX-pcihost",\
749 .property = "short_root_bus",\
750 .value = stringify(1),\
752 .driver = "q35-pcihost",\
753 .property = "short_root_bus",\
754 .value = stringify(1),\
757 #define PC_COMPAT_1_5 \
758 PC_CPU_MODEL_IDS("1.5.0") \
760 .driver = "Conroe-" TYPE_X86_CPU,\
761 .property = "model",\
762 .value = stringify(2),\
764 .driver = "Conroe-" TYPE_X86_CPU,\
765 .property = "level",\
766 .value = stringify(2),\
768 .driver = "Penryn-" TYPE_X86_CPU,\
769 .property = "model",\
770 .value = stringify(2),\
772 .driver = "Penryn-" TYPE_X86_CPU,\
773 .property = "level",\
774 .value = stringify(2),\
776 .driver = "Nehalem-" TYPE_X86_CPU,\
777 .property = "model",\
778 .value = stringify(2),\
780 .driver = "Nehalem-" TYPE_X86_CPU,\
781 .property = "level",\
782 .value = stringify(2),\
784 .driver = "virtio-net-pci",\
785 .property = "any_layout",\
788 .driver = TYPE_X86_CPU,\
792 .driver = "i440FX-pcihost",\
793 .property = "short_root_bus",\
794 .value = stringify(0),\
796 .driver = "q35-pcihost",\
797 .property = "short_root_bus",\
798 .value = stringify(0),\
801 #define PC_COMPAT_1_4 \
802 PC_CPU_MODEL_IDS("1.4.0") \
804 .driver = "scsi-hd",\
805 .property = "discard_granularity",\
806 .value = stringify(0),\
808 .driver = "scsi-cd",\
809 .property = "discard_granularity",\
810 .value = stringify(0),\
812 .driver = "scsi-disk",\
813 .property = "discard_granularity",\
814 .value = stringify(0),\
817 .property = "discard_granularity",\
818 .value = stringify(0),\
821 .property = "discard_granularity",\
822 .value = stringify(0),\
824 .driver = "ide-drive",\
825 .property = "discard_granularity",\
826 .value = stringify(0),\
828 .driver = "virtio-blk-pci",\
829 .property = "discard_granularity",\
830 .value = stringify(0),\
832 .driver = "virtio-serial-pci",\
833 .property = "vectors",\
834 /* DEV_NVECTORS_UNSPECIFIED as a uint32_t string */\
835 .value = stringify(0xFFFFFFFF),\
837 .driver = "virtio-net-pci", \
838 .property = "ctrl_guest_offloads", \
842 .property = "romfile",\
843 .value = "pxe-e1000.rom",\
845 .driver = "ne2k_pci",\
846 .property = "romfile",\
847 .value = "pxe-ne2k_pci.rom",\
850 .property = "romfile",\
851 .value = "pxe-pcnet.rom",\
853 .driver = "rtl8139",\
854 .property = "romfile",\
855 .value = "pxe-rtl8139.rom",\
857 .driver = "virtio-net-pci",\
858 .property = "romfile",\
859 .value = "pxe-virtio.rom",\
861 .driver = "486-" TYPE_X86_CPU,\
862 .property = "model",\
863 .value = stringify(0),\
866 .driver = "n270" "-" TYPE_X86_CPU,\
867 .property = "movbe",\
871 .driver = "Westmere" "-" TYPE_X86_CPU,\
872 .property = "pclmulqdq",\
876 #define DEFINE_PC_MACHINE(suffix, namestr, initfn, optsfn) \
877 static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \
879 MachineClass *mc = MACHINE_CLASS(oc); \
881 mc->name = namestr; \
884 static const TypeInfo pc_machine_type_##suffix = { \
885 .name = namestr TYPE_MACHINE_SUFFIX, \
886 .parent = TYPE_PC_MACHINE, \
887 .class_init = pc_machine_##suffix##_class_init, \
889 static void pc_machine_init_##suffix(void) \
891 type_register(&pc_machine_type_##suffix); \
893 type_init(pc_machine_init_##suffix)
895 extern void igd_passthrough_isa_bridge_create(PCIBus
*bus
, uint16_t gpu_dev_id
);