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/compat.h"
17 #include "hw/mem/pc-dimm.h"
18 #include "hw/mem/nvdimm.h"
19 #include "hw/acpi/acpi_dev_interface.h"
21 #define HPET_INTCAP "hpet-intcap"
25 * @acpi_dev: link to ACPI PM device that performs ACPI hotplug handling
26 * @boot_cpus: number of present VCPUs
28 struct PCMachineState
{
30 MachineState parent_obj
;
34 /* State for other subsystems/APIs: */
35 Notifier machine_done
;
37 /* Pointers to devices and objects: */
38 HotplugHandler
*acpi_dev
;
44 /* Configuration options: */
45 uint64_t max_ram_below_4g
;
49 AcpiNVDIMMState acpi_nvdimm_state
;
51 bool acpi_build_enabled
;
56 /* RAM information (sizes, addresses, configuration): */
57 ram_addr_t below_4g_mem_size
, above_4g_mem_size
;
59 /* CPU and apic information: */
60 bool apic_xrupt_override
;
61 unsigned apic_id_limit
;
64 /* NUMA information: */
68 /* Address space used by IOAPIC device. All IOAPIC interrupts
69 * will be translated to MSI messages in the address space. */
70 AddressSpace
*ioapic_as
;
73 #define PC_MACHINE_ACPI_DEVICE_PROP "acpi-device"
74 #define PC_MACHINE_DEVMEM_REGION_SIZE "device-memory-region-size"
75 #define PC_MACHINE_MAX_RAM_BELOW_4G "max-ram-below-4g"
76 #define PC_MACHINE_VMPORT "vmport"
77 #define PC_MACHINE_SMM "smm"
78 #define PC_MACHINE_NVDIMM "nvdimm"
79 #define PC_MACHINE_SMBUS "smbus"
80 #define PC_MACHINE_SATA "sata"
81 #define PC_MACHINE_PIT "pit"
88 * @enforce_aligned_dimm: check that DIMM's address/size is aligned by
89 * backend's alignment value if provided
90 * @acpi_data_size: Size of the chunk of memory at the top of RAM
91 * for the BIOS ACPI tables and other BIOS
93 * @gigabyte_align: Make sure that guest addresses aligned at
94 * 1Gbyte boundaries get mapped to host
95 * addresses aligned at 1Gbyte boundaries. This
96 * way we can use 1GByte pages in the host.
99 struct PCMachineClass
{
101 MachineClass parent_class
;
105 /* Device configuration: */
107 bool kvmclock_enabled
;
108 const char *default_nic_model
;
110 /* Compat options: */
115 int legacy_acpi_table_size
;
116 unsigned acpi_data_size
;
119 bool smbios_defaults
;
120 bool smbios_legacy_mode
;
121 bool smbios_uuid_encoded
;
123 /* RAM / address space compat: */
125 bool has_reserved_memory
;
126 bool enforce_aligned_dimm
;
127 bool broken_reserved_end
;
129 /* TSC rate migration: */
131 /* generate legacy CPU hotplug AML */
132 bool legacy_cpu_hotplug
;
134 /* use DMA capable linuxboot option rom */
135 bool linuxboot_dma_enabled
;
138 #define TYPE_PC_MACHINE "generic-pc-machine"
139 #define PC_MACHINE(obj) \
140 OBJECT_CHECK(PCMachineState, (obj), TYPE_PC_MACHINE)
141 #define PC_MACHINE_GET_CLASS(obj) \
142 OBJECT_GET_CLASS(PCMachineClass, (obj), TYPE_PC_MACHINE)
143 #define PC_MACHINE_CLASS(klass) \
144 OBJECT_CLASS_CHECK(PCMachineClass, (klass), TYPE_PC_MACHINE)
148 extern DeviceState
*isa_pic
;
149 qemu_irq
*i8259_init(ISABus
*bus
, qemu_irq parent_irq
);
150 qemu_irq
*kvm_i8259_init(ISABus
*bus
);
151 int pic_read_irq(DeviceState
*d
);
152 int pic_get_output(DeviceState
*d
);
156 void kvm_ioapic_dump_state(Monitor
*mon
, const QDict
*qdict
);
157 void ioapic_dump_state(Monitor
*mon
, const QDict
*qdict
);
159 /* Global System Interrupts */
161 #define GSI_NUM_PINS IOAPIC_NUM_PINS
163 typedef struct GSIState
{
164 qemu_irq i8259_irq
[ISA_NUM_IRQS
];
165 qemu_irq ioapic_irq
[IOAPIC_NUM_PINS
];
168 void gsi_handler(void *opaque
, int n
, int level
);
171 #define TYPE_VMPORT "vmport"
172 typedef uint32_t (VMPortReadFunc
)(void *opaque
, uint32_t address
);
174 static inline void vmport_init(ISABus
*bus
)
176 isa_create_simple(bus
, TYPE_VMPORT
);
179 void vmport_register(unsigned char command
, VMPortReadFunc
*func
, void *opaque
);
180 void vmmouse_get_data(uint32_t *data
);
181 void vmmouse_set_data(const uint32_t *data
);
184 extern int fd_bootchk
;
186 bool pc_machine_is_smm_enabled(PCMachineState
*pcms
);
187 void pc_register_ferr_irq(qemu_irq irq
);
188 void pc_acpi_smi_interrupt(void *opaque
, int irq
, int level
);
190 void pc_cpus_init(PCMachineState
*pcms
);
191 void pc_hot_add_cpu(const int64_t id
, Error
**errp
);
192 void pc_acpi_init(const char *default_dsdt
);
194 void pc_guest_info_init(PCMachineState
*pcms
);
196 #define PCI_HOST_PROP_PCI_HOLE_START "pci-hole-start"
197 #define PCI_HOST_PROP_PCI_HOLE_END "pci-hole-end"
198 #define PCI_HOST_PROP_PCI_HOLE64_START "pci-hole64-start"
199 #define PCI_HOST_PROP_PCI_HOLE64_END "pci-hole64-end"
200 #define PCI_HOST_PROP_PCI_HOLE64_SIZE "pci-hole64-size"
201 #define PCI_HOST_BELOW_4G_MEM_SIZE "below-4g-mem-size"
202 #define PCI_HOST_ABOVE_4G_MEM_SIZE "above-4g-mem-size"
205 void pc_pci_as_mapping_init(Object
*owner
, MemoryRegion
*system_memory
,
206 MemoryRegion
*pci_address_space
);
208 void xen_load_linux(PCMachineState
*pcms
);
209 void pc_memory_init(PCMachineState
*pcms
,
210 MemoryRegion
*system_memory
,
211 MemoryRegion
*rom_memory
,
212 MemoryRegion
**ram_memory
);
213 uint64_t pc_pci_hole64_start(void);
214 qemu_irq
pc_allocate_cpu_irq(void);
215 DeviceState
*pc_vga_init(ISABus
*isa_bus
, PCIBus
*pci_bus
);
216 void pc_basic_device_init(ISABus
*isa_bus
, qemu_irq
*gsi
,
217 ISADevice
**rtc_state
,
222 void pc_init_ne2k_isa(ISABus
*bus
, NICInfo
*nd
);
223 void pc_cmos_init(PCMachineState
*pcms
,
224 BusState
*ide0
, BusState
*ide1
,
226 void pc_nic_init(PCMachineClass
*pcmc
, ISABus
*isa_bus
, PCIBus
*pci_bus
);
227 void pc_pci_device_init(PCIBus
*pci_bus
);
229 typedef void (*cpu_set_smm_t
)(int smm
, void *arg
);
231 void ioapic_init_gsi(GSIState
*gsi_state
, const char *parent_name
);
233 ISADevice
*pc_find_fdc0(void);
234 int cmos_get_fd_drive_type(FloppyDriveType fd0
);
236 #define FW_CFG_IO_BASE 0x510
238 #define PORT92_A20_LINE "a20"
242 I2CBus
*piix4_pm_init(PCIBus
*bus
, int devfn
, uint32_t smb_io_base
,
243 qemu_irq sci_irq
, qemu_irq smi_irq
,
244 int smm_enabled
, DeviceState
**piix4_pm
);
250 struct PCII440FXState
;
251 typedef struct PCII440FXState PCII440FXState
;
253 #define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
254 #define TYPE_I440FX_PCI_DEVICE "i440FX"
256 #define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
259 * Reset Control Register: PCI-accessible ISA-Compatible Register at address
260 * 0xcf9, provided by the PCI/ISA bridge (PIIX3 PCI function 0, 8086:7000).
262 #define RCR_IOPORT 0xcf9
264 PCIBus
*i440fx_init(const char *host_type
, const char *pci_type
,
265 PCII440FXState
**pi440fx_state
, int *piix_devfn
,
266 ISABus
**isa_bus
, qemu_irq
*pic
,
267 MemoryRegion
*address_space_mem
,
268 MemoryRegion
*address_space_io
,
270 ram_addr_t below_4g_mem_size
,
271 ram_addr_t above_4g_mem_size
,
272 MemoryRegion
*pci_memory
,
273 MemoryRegion
*ram_memory
);
275 PCIBus
*find_i440fx(void);
277 extern PCIDevice
*piix4_dev
;
278 int piix4_init(PCIBus
*bus
, ISABus
**isa_bus
, int devfn
);
281 void pc_system_firmware_init(MemoryRegion
*rom_memory
,
285 void pc_madt_cpu_entry(AcpiDeviceIf
*adev
, int uid
,
286 const CPUArchIdList
*apic_ids
, GArray
*entry
);
290 #define E820_RESERVED 2
293 #define E820_UNUSABLE 5
295 int e820_add_entry(uint64_t, uint64_t, uint32_t);
296 int e820_get_num_entries(void);
297 bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
299 #define PC_COMPAT_2_12 \
302 #define PC_COMPAT_2_11 \
305 .driver = "Skylake-Server" "-" TYPE_X86_CPU,\
306 .property = "clflushopt",\
310 #define PC_COMPAT_2_10 \
313 .driver = TYPE_X86_CPU,\
314 .property = "x-hv-max-vps",\
317 .driver = "i440FX-pcihost",\
318 .property = "x-pci-hole64-fix",\
321 .driver = "q35-pcihost",\
322 .property = "x-pci-hole64-fix",\
326 #define PC_COMPAT_2_9 \
330 .property = "extended-tseg-mbytes",\
331 .value = stringify(0),\
334 #define PC_COMPAT_2_8 \
337 .driver = TYPE_X86_CPU,\
338 .property = "tcg-cpuid",\
342 .driver = "kvmclock",\
343 .property = "x-mach-use-reliable-get-clock",\
347 .driver = "ICH9-LPC",\
348 .property = "x-smi-broadcast",\
352 .driver = TYPE_X86_CPU,\
353 .property = "vmware-cpuid-freq",\
357 .driver = "Haswell-" TYPE_X86_CPU,\
358 .property = "stepping",\
362 #define PC_COMPAT_2_7 \
365 .driver = TYPE_X86_CPU,\
366 .property = "l3-cache",\
370 .driver = TYPE_X86_CPU,\
371 .property = "full-cpuid-auto-level",\
375 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
376 .property = "family",\
380 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
381 .property = "model",\
385 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
386 .property = "stepping",\
390 .driver = "isa-pcspk",\
391 .property = "migrate",\
395 #define PC_COMPAT_2_6 \
398 .driver = TYPE_X86_CPU,\
399 .property = "cpuid-0xb",\
402 .driver = "vmxnet3",\
403 .property = "romfile",\
407 .driver = TYPE_X86_CPU,\
408 .property = "fill-mtrr-mask",\
412 .driver = "apic-common",\
413 .property = "legacy-instance-id",\
417 #define PC_COMPAT_2_5 \
420 /* Helper for setting model-id for CPU models that changed model-id
421 * depending on QEMU versions up to QEMU 2.4.
423 #define PC_CPU_MODEL_IDS(v) \
425 .driver = "qemu32-" TYPE_X86_CPU,\
426 .property = "model-id",\
427 .value = "QEMU Virtual CPU version " v,\
430 .driver = "qemu64-" TYPE_X86_CPU,\
431 .property = "model-id",\
432 .value = "QEMU Virtual CPU version " v,\
435 .driver = "athlon-" TYPE_X86_CPU,\
436 .property = "model-id",\
437 .value = "QEMU Virtual CPU version " v,\
440 #define PC_COMPAT_2_4 \
442 PC_CPU_MODEL_IDS("2.4.0") \
444 .driver = "Haswell-" TYPE_X86_CPU,\
449 .driver = "Haswell-noTSX-" TYPE_X86_CPU,\
454 .driver = "Broadwell-" TYPE_X86_CPU,\
459 .driver = "Broadwell-noTSX-" TYPE_X86_CPU,\
464 .driver = "host" "-" TYPE_X86_CPU,\
465 .property = "host-cache-info",\
469 .driver = TYPE_X86_CPU,\
470 .property = "check",\
474 .driver = "qemu64" "-" TYPE_X86_CPU,\
475 .property = "sse4a",\
479 .driver = "qemu64" "-" TYPE_X86_CPU,\
484 .driver = "qemu64" "-" TYPE_X86_CPU,\
485 .property = "popcnt",\
489 .driver = "qemu32" "-" TYPE_X86_CPU,\
490 .property = "popcnt",\
493 .driver = "Opteron_G2" "-" TYPE_X86_CPU,\
494 .property = "rdtscp",\
497 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
498 .property = "rdtscp",\
501 .driver = "Opteron_G4" "-" TYPE_X86_CPU,\
502 .property = "rdtscp",\
505 .driver = "Opteron_G5" "-" TYPE_X86_CPU,\
506 .property = "rdtscp",\
511 #define PC_COMPAT_2_3 \
513 PC_CPU_MODEL_IDS("2.3.0") \
515 .driver = TYPE_X86_CPU,\
519 .driver = "qemu64" "-" TYPE_X86_CPU,\
520 .property = "min-level",\
521 .value = stringify(4),\
523 .driver = "kvm64" "-" TYPE_X86_CPU,\
524 .property = "min-level",\
525 .value = stringify(5),\
527 .driver = "pentium3" "-" TYPE_X86_CPU,\
528 .property = "min-level",\
529 .value = stringify(2),\
531 .driver = "n270" "-" TYPE_X86_CPU,\
532 .property = "min-level",\
533 .value = stringify(5),\
535 .driver = "Conroe" "-" TYPE_X86_CPU,\
536 .property = "min-level",\
537 .value = stringify(4),\
539 .driver = "Penryn" "-" TYPE_X86_CPU,\
540 .property = "min-level",\
541 .value = stringify(4),\
543 .driver = "Nehalem" "-" TYPE_X86_CPU,\
544 .property = "min-level",\
545 .value = stringify(4),\
547 .driver = "n270" "-" TYPE_X86_CPU,\
548 .property = "min-xlevel",\
549 .value = stringify(0x8000000a),\
551 .driver = "Penryn" "-" TYPE_X86_CPU,\
552 .property = "min-xlevel",\
553 .value = stringify(0x8000000a),\
555 .driver = "Conroe" "-" TYPE_X86_CPU,\
556 .property = "min-xlevel",\
557 .value = stringify(0x8000000a),\
559 .driver = "Nehalem" "-" TYPE_X86_CPU,\
560 .property = "min-xlevel",\
561 .value = stringify(0x8000000a),\
563 .driver = "Westmere" "-" TYPE_X86_CPU,\
564 .property = "min-xlevel",\
565 .value = stringify(0x8000000a),\
567 .driver = "SandyBridge" "-" TYPE_X86_CPU,\
568 .property = "min-xlevel",\
569 .value = stringify(0x8000000a),\
571 .driver = "IvyBridge" "-" TYPE_X86_CPU,\
572 .property = "min-xlevel",\
573 .value = stringify(0x8000000a),\
575 .driver = "Haswell" "-" TYPE_X86_CPU,\
576 .property = "min-xlevel",\
577 .value = stringify(0x8000000a),\
579 .driver = "Haswell-noTSX" "-" TYPE_X86_CPU,\
580 .property = "min-xlevel",\
581 .value = stringify(0x8000000a),\
583 .driver = "Broadwell" "-" TYPE_X86_CPU,\
584 .property = "min-xlevel",\
585 .value = stringify(0x8000000a),\
587 .driver = "Broadwell-noTSX" "-" TYPE_X86_CPU,\
588 .property = "min-xlevel",\
589 .value = stringify(0x8000000a),\
591 .driver = TYPE_X86_CPU,\
592 .property = "kvm-no-smi-migration",\
596 #define PC_COMPAT_2_2 \
598 PC_CPU_MODEL_IDS("2.2.0") \
600 .driver = "kvm64" "-" TYPE_X86_CPU,\
605 .driver = "kvm32" "-" TYPE_X86_CPU,\
610 .driver = "Conroe" "-" TYPE_X86_CPU,\
615 .driver = "Penryn" "-" TYPE_X86_CPU,\
620 .driver = "Nehalem" "-" TYPE_X86_CPU,\
625 .driver = "Westmere" "-" TYPE_X86_CPU,\
630 .driver = "SandyBridge" "-" TYPE_X86_CPU,\
635 .driver = "Haswell" "-" TYPE_X86_CPU,\
640 .driver = "Broadwell" "-" TYPE_X86_CPU,\
645 .driver = "Opteron_G1" "-" TYPE_X86_CPU,\
650 .driver = "Opteron_G2" "-" TYPE_X86_CPU,\
655 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
660 .driver = "Opteron_G4" "-" TYPE_X86_CPU,\
665 .driver = "Opteron_G5" "-" TYPE_X86_CPU,\
670 .driver = "Haswell" "-" TYPE_X86_CPU,\
675 .driver = "Haswell" "-" TYPE_X86_CPU,\
676 .property = "rdrand",\
680 .driver = "Broadwell" "-" TYPE_X86_CPU,\
685 .driver = "Broadwell" "-" TYPE_X86_CPU,\
686 .property = "rdrand",\
690 #define PC_COMPAT_2_1 \
692 PC_CPU_MODEL_IDS("2.1.0") \
694 .driver = "coreduo" "-" TYPE_X86_CPU,\
699 .driver = "core2duo" "-" TYPE_X86_CPU,\
704 #define PC_COMPAT_2_0 \
705 PC_CPU_MODEL_IDS("2.0.0") \
707 .driver = "virtio-scsi-pci",\
708 .property = "any_layout",\
711 .driver = "PIIX4_PM",\
712 .property = "memory-hotplug-support",\
717 .property = "version",\
718 .value = stringify(0x11),\
721 .driver = "nec-usb-xhci",\
722 .property = "superspeed-ports-first",\
726 .driver = "nec-usb-xhci",\
727 .property = "force-pcie-endcap",\
731 .driver = "pci-serial",\
732 .property = "prog_if",\
733 .value = stringify(0),\
736 .driver = "pci-serial-2x",\
737 .property = "prog_if",\
738 .value = stringify(0),\
741 .driver = "pci-serial-4x",\
742 .property = "prog_if",\
743 .value = stringify(0),\
746 .driver = "virtio-net-pci",\
747 .property = "guest_announce",\
751 .driver = "ICH9-LPC",\
752 .property = "memory-hotplug-support",\
755 .driver = "xio3130-downstream",\
756 .property = COMPAT_PROP_PCP,\
759 .driver = "ioh3420",\
760 .property = COMPAT_PROP_PCP,\
764 #define PC_COMPAT_1_7 \
765 PC_CPU_MODEL_IDS("1.7.0") \
767 .driver = TYPE_USB_DEVICE,\
768 .property = "msos-desc",\
772 .driver = "PIIX4_PM",\
773 .property = "acpi-pci-hotplug-with-bridge-support",\
778 .property = HPET_INTCAP,\
779 .value = stringify(4),\
782 #define PC_COMPAT_1_6 \
783 PC_CPU_MODEL_IDS("1.6.0") \
786 .property = "mitigation",\
789 .driver = "qemu64-" TYPE_X86_CPU,\
790 .property = "model",\
791 .value = stringify(2),\
793 .driver = "qemu32-" TYPE_X86_CPU,\
794 .property = "model",\
795 .value = stringify(3),\
797 .driver = "i440FX-pcihost",\
798 .property = "short_root_bus",\
799 .value = stringify(1),\
801 .driver = "q35-pcihost",\
802 .property = "short_root_bus",\
803 .value = stringify(1),\
806 #define PC_COMPAT_1_5 \
807 PC_CPU_MODEL_IDS("1.5.0") \
809 .driver = "Conroe-" TYPE_X86_CPU,\
810 .property = "model",\
811 .value = stringify(2),\
813 .driver = "Conroe-" TYPE_X86_CPU,\
814 .property = "min-level",\
815 .value = stringify(2),\
817 .driver = "Penryn-" TYPE_X86_CPU,\
818 .property = "model",\
819 .value = stringify(2),\
821 .driver = "Penryn-" TYPE_X86_CPU,\
822 .property = "min-level",\
823 .value = stringify(2),\
825 .driver = "Nehalem-" TYPE_X86_CPU,\
826 .property = "model",\
827 .value = stringify(2),\
829 .driver = "Nehalem-" TYPE_X86_CPU,\
830 .property = "min-level",\
831 .value = stringify(2),\
833 .driver = "virtio-net-pci",\
834 .property = "any_layout",\
837 .driver = TYPE_X86_CPU,\
841 .driver = "i440FX-pcihost",\
842 .property = "short_root_bus",\
843 .value = stringify(0),\
845 .driver = "q35-pcihost",\
846 .property = "short_root_bus",\
847 .value = stringify(0),\
850 #define PC_COMPAT_1_4 \
851 PC_CPU_MODEL_IDS("1.4.0") \
853 .driver = "scsi-hd",\
854 .property = "discard_granularity",\
855 .value = stringify(0),\
857 .driver = "scsi-cd",\
858 .property = "discard_granularity",\
859 .value = stringify(0),\
861 .driver = "scsi-disk",\
862 .property = "discard_granularity",\
863 .value = stringify(0),\
866 .property = "discard_granularity",\
867 .value = stringify(0),\
870 .property = "discard_granularity",\
871 .value = stringify(0),\
873 .driver = "ide-drive",\
874 .property = "discard_granularity",\
875 .value = stringify(0),\
877 .driver = "virtio-blk-pci",\
878 .property = "discard_granularity",\
879 .value = stringify(0),\
881 .driver = "virtio-serial-pci",\
882 .property = "vectors",\
883 /* DEV_NVECTORS_UNSPECIFIED as a uint32_t string */\
884 .value = stringify(0xFFFFFFFF),\
886 .driver = "virtio-net-pci", \
887 .property = "ctrl_guest_offloads", \
891 .property = "romfile",\
892 .value = "pxe-e1000.rom",\
894 .driver = "ne2k_pci",\
895 .property = "romfile",\
896 .value = "pxe-ne2k_pci.rom",\
899 .property = "romfile",\
900 .value = "pxe-pcnet.rom",\
902 .driver = "rtl8139",\
903 .property = "romfile",\
904 .value = "pxe-rtl8139.rom",\
906 .driver = "virtio-net-pci",\
907 .property = "romfile",\
908 .value = "pxe-virtio.rom",\
910 .driver = "486-" TYPE_X86_CPU,\
911 .property = "model",\
912 .value = stringify(0),\
915 .driver = "n270" "-" TYPE_X86_CPU,\
916 .property = "movbe",\
920 .driver = "Westmere" "-" TYPE_X86_CPU,\
921 .property = "pclmulqdq",\
925 #define DEFINE_PC_MACHINE(suffix, namestr, initfn, optsfn) \
926 static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \
928 MachineClass *mc = MACHINE_CLASS(oc); \
932 static const TypeInfo pc_machine_type_##suffix = { \
933 .name = namestr TYPE_MACHINE_SUFFIX, \
934 .parent = TYPE_PC_MACHINE, \
935 .class_init = pc_machine_##suffix##_class_init, \
937 static void pc_machine_init_##suffix(void) \
939 type_register(&pc_machine_type_##suffix); \
941 type_init(pc_machine_init_##suffix)
943 extern void igd_passthrough_isa_bridge_create(PCIBus
*bus
, uint16_t gpu_dev_id
);