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_MEMHP_REGION_SIZE "hotplug-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 * @get_hotplug_handler: pointer to parent class callback @get_hotplug_handler
92 * @enforce_aligned_dimm: check that DIMM's address/size is aligned by
93 * backend's alignment value if provided
94 * @acpi_data_size: Size of the chunk of memory at the top of RAM
95 * for the BIOS ACPI tables and other BIOS
97 * @gigabyte_align: Make sure that guest addresses aligned at
98 * 1Gbyte boundaries get mapped to host
99 * addresses aligned at 1Gbyte boundaries. This
100 * way we can use 1GByte pages in the host.
103 struct PCMachineClass
{
105 MachineClass parent_class
;
110 HotplugHandler
*(*get_hotplug_handler
)(MachineState
*machine
,
113 /* Device configuration: */
115 bool kvmclock_enabled
;
116 const char *default_nic_model
;
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: */
139 /* generate legacy CPU hotplug AML */
140 bool legacy_cpu_hotplug
;
142 /* use DMA capable linuxboot option rom */
143 bool linuxboot_dma_enabled
;
146 #define TYPE_PC_MACHINE "generic-pc-machine"
147 #define PC_MACHINE(obj) \
148 OBJECT_CHECK(PCMachineState, (obj), TYPE_PC_MACHINE)
149 #define PC_MACHINE_GET_CLASS(obj) \
150 OBJECT_GET_CLASS(PCMachineClass, (obj), TYPE_PC_MACHINE)
151 #define PC_MACHINE_CLASS(klass) \
152 OBJECT_CLASS_CHECK(PCMachineClass, (klass), TYPE_PC_MACHINE)
156 extern DeviceState
*isa_pic
;
157 qemu_irq
*i8259_init(ISABus
*bus
, qemu_irq parent_irq
);
158 qemu_irq
*kvm_i8259_init(ISABus
*bus
);
159 int pic_read_irq(DeviceState
*d
);
160 int pic_get_output(DeviceState
*d
);
164 void kvm_ioapic_dump_state(Monitor
*mon
, const QDict
*qdict
);
165 void ioapic_dump_state(Monitor
*mon
, const QDict
*qdict
);
167 /* Global System Interrupts */
169 #define GSI_NUM_PINS IOAPIC_NUM_PINS
171 typedef struct GSIState
{
172 qemu_irq i8259_irq
[ISA_NUM_IRQS
];
173 qemu_irq ioapic_irq
[IOAPIC_NUM_PINS
];
176 void gsi_handler(void *opaque
, int n
, int level
);
179 #define TYPE_VMPORT "vmport"
180 typedef uint32_t (VMPortReadFunc
)(void *opaque
, uint32_t address
);
182 static inline void vmport_init(ISABus
*bus
)
184 isa_create_simple(bus
, TYPE_VMPORT
);
187 void vmport_register(unsigned char command
, VMPortReadFunc
*func
, void *opaque
);
188 void vmmouse_get_data(uint32_t *data
);
189 void vmmouse_set_data(const uint32_t *data
);
192 extern int fd_bootchk
;
194 bool pc_machine_is_smm_enabled(PCMachineState
*pcms
);
195 void pc_register_ferr_irq(qemu_irq irq
);
196 void pc_acpi_smi_interrupt(void *opaque
, int irq
, int level
);
198 void pc_cpus_init(PCMachineState
*pcms
);
199 void pc_hot_add_cpu(const int64_t id
, Error
**errp
);
200 void pc_acpi_init(const char *default_dsdt
);
202 void pc_guest_info_init(PCMachineState
*pcms
);
204 #define PCI_HOST_PROP_PCI_HOLE_START "pci-hole-start"
205 #define PCI_HOST_PROP_PCI_HOLE_END "pci-hole-end"
206 #define PCI_HOST_PROP_PCI_HOLE64_START "pci-hole64-start"
207 #define PCI_HOST_PROP_PCI_HOLE64_END "pci-hole64-end"
208 #define PCI_HOST_PROP_PCI_HOLE64_SIZE "pci-hole64-size"
209 #define PCI_HOST_BELOW_4G_MEM_SIZE "below-4g-mem-size"
210 #define PCI_HOST_ABOVE_4G_MEM_SIZE "above-4g-mem-size"
213 void pc_pci_as_mapping_init(Object
*owner
, MemoryRegion
*system_memory
,
214 MemoryRegion
*pci_address_space
);
216 void xen_load_linux(PCMachineState
*pcms
);
217 void pc_memory_init(PCMachineState
*pcms
,
218 MemoryRegion
*system_memory
,
219 MemoryRegion
*rom_memory
,
220 MemoryRegion
**ram_memory
);
221 uint64_t pc_pci_hole64_start(void);
222 qemu_irq
pc_allocate_cpu_irq(void);
223 DeviceState
*pc_vga_init(ISABus
*isa_bus
, PCIBus
*pci_bus
);
224 void pc_basic_device_init(ISABus
*isa_bus
, qemu_irq
*gsi
,
225 ISADevice
**rtc_state
,
230 void pc_init_ne2k_isa(ISABus
*bus
, NICInfo
*nd
);
231 void pc_cmos_init(PCMachineState
*pcms
,
232 BusState
*ide0
, BusState
*ide1
,
234 void pc_nic_init(PCMachineClass
*pcmc
, ISABus
*isa_bus
, PCIBus
*pci_bus
);
235 void pc_pci_device_init(PCIBus
*pci_bus
);
237 typedef void (*cpu_set_smm_t
)(int smm
, void *arg
);
239 void ioapic_init_gsi(GSIState
*gsi_state
, const char *parent_name
);
241 ISADevice
*pc_find_fdc0(void);
242 int cmos_get_fd_drive_type(FloppyDriveType fd0
);
244 #define FW_CFG_IO_BASE 0x510
246 #define PORT92_A20_LINE "a20"
250 I2CBus
*piix4_pm_init(PCIBus
*bus
, int devfn
, uint32_t smb_io_base
,
251 qemu_irq sci_irq
, qemu_irq smi_irq
,
252 int smm_enabled
, DeviceState
**piix4_pm
);
258 struct PCII440FXState
;
259 typedef struct PCII440FXState PCII440FXState
;
261 #define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
262 #define TYPE_I440FX_PCI_DEVICE "i440FX"
264 #define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
267 * Reset Control Register: PCI-accessible ISA-Compatible Register at address
268 * 0xcf9, provided by the PCI/ISA bridge (PIIX3 PCI function 0, 8086:7000).
270 #define RCR_IOPORT 0xcf9
272 PCIBus
*i440fx_init(const char *host_type
, const char *pci_type
,
273 PCII440FXState
**pi440fx_state
, int *piix_devfn
,
274 ISABus
**isa_bus
, qemu_irq
*pic
,
275 MemoryRegion
*address_space_mem
,
276 MemoryRegion
*address_space_io
,
278 ram_addr_t below_4g_mem_size
,
279 ram_addr_t above_4g_mem_size
,
280 MemoryRegion
*pci_memory
,
281 MemoryRegion
*ram_memory
);
283 PCIBus
*find_i440fx(void);
285 extern PCIDevice
*piix4_dev
;
286 int piix4_init(PCIBus
*bus
, ISABus
**isa_bus
, int devfn
);
289 void pc_system_firmware_init(MemoryRegion
*rom_memory
,
293 void pc_madt_cpu_entry(AcpiDeviceIf
*adev
, int uid
,
294 const CPUArchIdList
*apic_ids
, GArray
*entry
);
298 #define E820_RESERVED 2
301 #define E820_UNUSABLE 5
303 int e820_add_entry(uint64_t, uint64_t, uint32_t);
304 int e820_get_num_entries(void);
305 bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
307 #define PC_COMPAT_2_11 \
310 .driver = "Skylake-Server" "-" TYPE_X86_CPU,\
311 .property = "clflushopt",\
315 #define PC_COMPAT_2_10 \
318 .driver = TYPE_X86_CPU,\
319 .property = "x-hv-max-vps",\
322 .driver = "i440FX-pcihost",\
323 .property = "x-pci-hole64-fix",\
326 .driver = "q35-pcihost",\
327 .property = "x-pci-hole64-fix",\
331 #define PC_COMPAT_2_9 \
335 .property = "extended-tseg-mbytes",\
336 .value = stringify(0),\
339 #define PC_COMPAT_2_8 \
342 .driver = TYPE_X86_CPU,\
343 .property = "tcg-cpuid",\
347 .driver = "kvmclock",\
348 .property = "x-mach-use-reliable-get-clock",\
352 .driver = "ICH9-LPC",\
353 .property = "x-smi-broadcast",\
357 .driver = TYPE_X86_CPU,\
358 .property = "vmware-cpuid-freq",\
362 .driver = "Haswell-" TYPE_X86_CPU,\
363 .property = "stepping",\
367 #define PC_COMPAT_2_7 \
370 .driver = TYPE_X86_CPU,\
371 .property = "l3-cache",\
375 .driver = TYPE_X86_CPU,\
376 .property = "full-cpuid-auto-level",\
380 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
381 .property = "family",\
385 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
386 .property = "model",\
390 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
391 .property = "stepping",\
395 .driver = "isa-pcspk",\
396 .property = "migrate",\
400 #define PC_COMPAT_2_6 \
403 .driver = TYPE_X86_CPU,\
404 .property = "cpuid-0xb",\
407 .driver = "vmxnet3",\
408 .property = "romfile",\
412 .driver = TYPE_X86_CPU,\
413 .property = "fill-mtrr-mask",\
417 .driver = "apic-common",\
418 .property = "legacy-instance-id",\
422 #define PC_COMPAT_2_5 \
425 /* Helper for setting model-id for CPU models that changed model-id
426 * depending on QEMU versions up to QEMU 2.4.
428 #define PC_CPU_MODEL_IDS(v) \
430 .driver = "qemu32-" TYPE_X86_CPU,\
431 .property = "model-id",\
432 .value = "QEMU Virtual CPU version " v,\
435 .driver = "qemu64-" TYPE_X86_CPU,\
436 .property = "model-id",\
437 .value = "QEMU Virtual CPU version " v,\
440 .driver = "athlon-" TYPE_X86_CPU,\
441 .property = "model-id",\
442 .value = "QEMU Virtual CPU version " v,\
445 #define PC_COMPAT_2_4 \
447 PC_CPU_MODEL_IDS("2.4.0") \
449 .driver = "Haswell-" TYPE_X86_CPU,\
454 .driver = "Haswell-noTSX-" TYPE_X86_CPU,\
459 .driver = "Broadwell-" TYPE_X86_CPU,\
464 .driver = "Broadwell-noTSX-" TYPE_X86_CPU,\
469 .driver = "host" "-" TYPE_X86_CPU,\
470 .property = "host-cache-info",\
474 .driver = TYPE_X86_CPU,\
475 .property = "check",\
479 .driver = "qemu64" "-" TYPE_X86_CPU,\
480 .property = "sse4a",\
484 .driver = "qemu64" "-" TYPE_X86_CPU,\
489 .driver = "qemu64" "-" TYPE_X86_CPU,\
490 .property = "popcnt",\
494 .driver = "qemu32" "-" TYPE_X86_CPU,\
495 .property = "popcnt",\
498 .driver = "Opteron_G2" "-" TYPE_X86_CPU,\
499 .property = "rdtscp",\
502 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
503 .property = "rdtscp",\
506 .driver = "Opteron_G4" "-" TYPE_X86_CPU,\
507 .property = "rdtscp",\
510 .driver = "Opteron_G5" "-" TYPE_X86_CPU,\
511 .property = "rdtscp",\
516 #define PC_COMPAT_2_3 \
518 PC_CPU_MODEL_IDS("2.3.0") \
520 .driver = TYPE_X86_CPU,\
524 .driver = "qemu64" "-" TYPE_X86_CPU,\
525 .property = "min-level",\
526 .value = stringify(4),\
528 .driver = "kvm64" "-" TYPE_X86_CPU,\
529 .property = "min-level",\
530 .value = stringify(5),\
532 .driver = "pentium3" "-" TYPE_X86_CPU,\
533 .property = "min-level",\
534 .value = stringify(2),\
536 .driver = "n270" "-" TYPE_X86_CPU,\
537 .property = "min-level",\
538 .value = stringify(5),\
540 .driver = "Conroe" "-" TYPE_X86_CPU,\
541 .property = "min-level",\
542 .value = stringify(4),\
544 .driver = "Penryn" "-" TYPE_X86_CPU,\
545 .property = "min-level",\
546 .value = stringify(4),\
548 .driver = "Nehalem" "-" TYPE_X86_CPU,\
549 .property = "min-level",\
550 .value = stringify(4),\
552 .driver = "n270" "-" TYPE_X86_CPU,\
553 .property = "min-xlevel",\
554 .value = stringify(0x8000000a),\
556 .driver = "Penryn" "-" TYPE_X86_CPU,\
557 .property = "min-xlevel",\
558 .value = stringify(0x8000000a),\
560 .driver = "Conroe" "-" TYPE_X86_CPU,\
561 .property = "min-xlevel",\
562 .value = stringify(0x8000000a),\
564 .driver = "Nehalem" "-" TYPE_X86_CPU,\
565 .property = "min-xlevel",\
566 .value = stringify(0x8000000a),\
568 .driver = "Westmere" "-" TYPE_X86_CPU,\
569 .property = "min-xlevel",\
570 .value = stringify(0x8000000a),\
572 .driver = "SandyBridge" "-" TYPE_X86_CPU,\
573 .property = "min-xlevel",\
574 .value = stringify(0x8000000a),\
576 .driver = "IvyBridge" "-" TYPE_X86_CPU,\
577 .property = "min-xlevel",\
578 .value = stringify(0x8000000a),\
580 .driver = "Haswell" "-" TYPE_X86_CPU,\
581 .property = "min-xlevel",\
582 .value = stringify(0x8000000a),\
584 .driver = "Haswell-noTSX" "-" TYPE_X86_CPU,\
585 .property = "min-xlevel",\
586 .value = stringify(0x8000000a),\
588 .driver = "Broadwell" "-" TYPE_X86_CPU,\
589 .property = "min-xlevel",\
590 .value = stringify(0x8000000a),\
592 .driver = "Broadwell-noTSX" "-" TYPE_X86_CPU,\
593 .property = "min-xlevel",\
594 .value = stringify(0x8000000a),\
596 .driver = TYPE_X86_CPU,\
597 .property = "kvm-no-smi-migration",\
601 #define PC_COMPAT_2_2 \
603 PC_CPU_MODEL_IDS("2.2.0") \
605 .driver = "kvm64" "-" TYPE_X86_CPU,\
610 .driver = "kvm32" "-" TYPE_X86_CPU,\
615 .driver = "Conroe" "-" TYPE_X86_CPU,\
620 .driver = "Penryn" "-" TYPE_X86_CPU,\
625 .driver = "Nehalem" "-" TYPE_X86_CPU,\
630 .driver = "Westmere" "-" TYPE_X86_CPU,\
635 .driver = "SandyBridge" "-" TYPE_X86_CPU,\
640 .driver = "Haswell" "-" TYPE_X86_CPU,\
645 .driver = "Broadwell" "-" TYPE_X86_CPU,\
650 .driver = "Opteron_G1" "-" TYPE_X86_CPU,\
655 .driver = "Opteron_G2" "-" TYPE_X86_CPU,\
660 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
665 .driver = "Opteron_G4" "-" TYPE_X86_CPU,\
670 .driver = "Opteron_G5" "-" TYPE_X86_CPU,\
675 .driver = "Haswell" "-" TYPE_X86_CPU,\
680 .driver = "Haswell" "-" TYPE_X86_CPU,\
681 .property = "rdrand",\
685 .driver = "Broadwell" "-" TYPE_X86_CPU,\
690 .driver = "Broadwell" "-" TYPE_X86_CPU,\
691 .property = "rdrand",\
695 #define PC_COMPAT_2_1 \
697 PC_CPU_MODEL_IDS("2.1.0") \
699 .driver = "coreduo" "-" TYPE_X86_CPU,\
704 .driver = "core2duo" "-" TYPE_X86_CPU,\
709 #define PC_COMPAT_2_0 \
710 PC_CPU_MODEL_IDS("2.0.0") \
712 .driver = "virtio-scsi-pci",\
713 .property = "any_layout",\
716 .driver = "PIIX4_PM",\
717 .property = "memory-hotplug-support",\
722 .property = "version",\
723 .value = stringify(0x11),\
726 .driver = "nec-usb-xhci",\
727 .property = "superspeed-ports-first",\
731 .driver = "nec-usb-xhci",\
732 .property = "force-pcie-endcap",\
736 .driver = "pci-serial",\
737 .property = "prog_if",\
738 .value = stringify(0),\
741 .driver = "pci-serial-2x",\
742 .property = "prog_if",\
743 .value = stringify(0),\
746 .driver = "pci-serial-4x",\
747 .property = "prog_if",\
748 .value = stringify(0),\
751 .driver = "virtio-net-pci",\
752 .property = "guest_announce",\
756 .driver = "ICH9-LPC",\
757 .property = "memory-hotplug-support",\
760 .driver = "xio3130-downstream",\
761 .property = COMPAT_PROP_PCP,\
764 .driver = "ioh3420",\
765 .property = COMPAT_PROP_PCP,\
769 #define PC_COMPAT_1_7 \
770 PC_CPU_MODEL_IDS("1.7.0") \
772 .driver = TYPE_USB_DEVICE,\
773 .property = "msos-desc",\
777 .driver = "PIIX4_PM",\
778 .property = "acpi-pci-hotplug-with-bridge-support",\
783 .property = HPET_INTCAP,\
784 .value = stringify(4),\
787 #define PC_COMPAT_1_6 \
788 PC_CPU_MODEL_IDS("1.6.0") \
791 .property = "mitigation",\
794 .driver = "qemu64-" TYPE_X86_CPU,\
795 .property = "model",\
796 .value = stringify(2),\
798 .driver = "qemu32-" TYPE_X86_CPU,\
799 .property = "model",\
800 .value = stringify(3),\
802 .driver = "i440FX-pcihost",\
803 .property = "short_root_bus",\
804 .value = stringify(1),\
806 .driver = "q35-pcihost",\
807 .property = "short_root_bus",\
808 .value = stringify(1),\
811 #define PC_COMPAT_1_5 \
812 PC_CPU_MODEL_IDS("1.5.0") \
814 .driver = "Conroe-" TYPE_X86_CPU,\
815 .property = "model",\
816 .value = stringify(2),\
818 .driver = "Conroe-" TYPE_X86_CPU,\
819 .property = "min-level",\
820 .value = stringify(2),\
822 .driver = "Penryn-" TYPE_X86_CPU,\
823 .property = "model",\
824 .value = stringify(2),\
826 .driver = "Penryn-" TYPE_X86_CPU,\
827 .property = "min-level",\
828 .value = stringify(2),\
830 .driver = "Nehalem-" TYPE_X86_CPU,\
831 .property = "model",\
832 .value = stringify(2),\
834 .driver = "Nehalem-" TYPE_X86_CPU,\
835 .property = "min-level",\
836 .value = stringify(2),\
838 .driver = "virtio-net-pci",\
839 .property = "any_layout",\
842 .driver = TYPE_X86_CPU,\
846 .driver = "i440FX-pcihost",\
847 .property = "short_root_bus",\
848 .value = stringify(0),\
850 .driver = "q35-pcihost",\
851 .property = "short_root_bus",\
852 .value = stringify(0),\
855 #define PC_COMPAT_1_4 \
856 PC_CPU_MODEL_IDS("1.4.0") \
858 .driver = "scsi-hd",\
859 .property = "discard_granularity",\
860 .value = stringify(0),\
862 .driver = "scsi-cd",\
863 .property = "discard_granularity",\
864 .value = stringify(0),\
866 .driver = "scsi-disk",\
867 .property = "discard_granularity",\
868 .value = stringify(0),\
871 .property = "discard_granularity",\
872 .value = stringify(0),\
875 .property = "discard_granularity",\
876 .value = stringify(0),\
878 .driver = "ide-drive",\
879 .property = "discard_granularity",\
880 .value = stringify(0),\
882 .driver = "virtio-blk-pci",\
883 .property = "discard_granularity",\
884 .value = stringify(0),\
886 .driver = "virtio-serial-pci",\
887 .property = "vectors",\
888 /* DEV_NVECTORS_UNSPECIFIED as a uint32_t string */\
889 .value = stringify(0xFFFFFFFF),\
891 .driver = "virtio-net-pci", \
892 .property = "ctrl_guest_offloads", \
896 .property = "romfile",\
897 .value = "pxe-e1000.rom",\
899 .driver = "ne2k_pci",\
900 .property = "romfile",\
901 .value = "pxe-ne2k_pci.rom",\
904 .property = "romfile",\
905 .value = "pxe-pcnet.rom",\
907 .driver = "rtl8139",\
908 .property = "romfile",\
909 .value = "pxe-rtl8139.rom",\
911 .driver = "virtio-net-pci",\
912 .property = "romfile",\
913 .value = "pxe-virtio.rom",\
915 .driver = "486-" TYPE_X86_CPU,\
916 .property = "model",\
917 .value = stringify(0),\
920 .driver = "n270" "-" TYPE_X86_CPU,\
921 .property = "movbe",\
925 .driver = "Westmere" "-" TYPE_X86_CPU,\
926 .property = "pclmulqdq",\
930 #define DEFINE_PC_MACHINE(suffix, namestr, initfn, optsfn) \
931 static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \
933 MachineClass *mc = MACHINE_CLASS(oc); \
937 static const TypeInfo pc_machine_type_##suffix = { \
938 .name = namestr TYPE_MACHINE_SUFFIX, \
939 .parent = TYPE_PC_MACHINE, \
940 .class_init = pc_machine_##suffix##_class_init, \
942 static void pc_machine_init_##suffix(void) \
944 type_register(&pc_machine_type_##suffix); \
946 type_init(pc_machine_init_##suffix)
948 extern void igd_passthrough_isa_bridge_create(PCIBus
*bus
, uint16_t gpu_dev_id
);