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_NVDIMM_PERSIST "nvdimm-persistence"
80 #define PC_MACHINE_SMBUS "smbus"
81 #define PC_MACHINE_SATA "sata"
82 #define PC_MACHINE_PIT "pit"
89 * @enforce_aligned_dimm: check that DIMM's address/size is aligned by
90 * backend's alignment value if provided
91 * @acpi_data_size: Size of the chunk of memory at the top of RAM
92 * for the BIOS ACPI tables and other BIOS
94 * @gigabyte_align: Make sure that guest addresses aligned at
95 * 1Gbyte boundaries get mapped to host
96 * addresses aligned at 1Gbyte boundaries. This
97 * way we can use 1GByte pages in the host.
100 struct PCMachineClass
{
102 MachineClass parent_class
;
106 /* Device configuration: */
108 bool kvmclock_enabled
;
109 const char *default_nic_model
;
111 /* Compat options: */
116 int legacy_acpi_table_size
;
117 unsigned acpi_data_size
;
120 bool smbios_defaults
;
121 bool smbios_legacy_mode
;
122 bool smbios_uuid_encoded
;
124 /* RAM / address space compat: */
126 bool has_reserved_memory
;
127 bool enforce_aligned_dimm
;
128 bool broken_reserved_end
;
130 /* TSC rate migration: */
132 /* generate legacy CPU hotplug AML */
133 bool legacy_cpu_hotplug
;
135 /* use DMA capable linuxboot option rom */
136 bool linuxboot_dma_enabled
;
139 #define TYPE_PC_MACHINE "generic-pc-machine"
140 #define PC_MACHINE(obj) \
141 OBJECT_CHECK(PCMachineState, (obj), TYPE_PC_MACHINE)
142 #define PC_MACHINE_GET_CLASS(obj) \
143 OBJECT_GET_CLASS(PCMachineClass, (obj), TYPE_PC_MACHINE)
144 #define PC_MACHINE_CLASS(klass) \
145 OBJECT_CLASS_CHECK(PCMachineClass, (klass), TYPE_PC_MACHINE)
149 extern DeviceState
*isa_pic
;
150 qemu_irq
*i8259_init(ISABus
*bus
, qemu_irq parent_irq
);
151 qemu_irq
*kvm_i8259_init(ISABus
*bus
);
152 int pic_read_irq(DeviceState
*d
);
153 int pic_get_output(DeviceState
*d
);
157 /* Global System Interrupts */
159 #define GSI_NUM_PINS IOAPIC_NUM_PINS
161 typedef struct GSIState
{
162 qemu_irq i8259_irq
[ISA_NUM_IRQS
];
163 qemu_irq ioapic_irq
[IOAPIC_NUM_PINS
];
166 void gsi_handler(void *opaque
, int n
, int level
);
169 #define TYPE_VMPORT "vmport"
170 typedef uint32_t (VMPortReadFunc
)(void *opaque
, uint32_t address
);
172 static inline void vmport_init(ISABus
*bus
)
174 isa_create_simple(bus
, TYPE_VMPORT
);
177 void vmport_register(unsigned char command
, VMPortReadFunc
*func
, void *opaque
);
178 void vmmouse_get_data(uint32_t *data
);
179 void vmmouse_set_data(const uint32_t *data
);
182 extern int fd_bootchk
;
184 bool pc_machine_is_smm_enabled(PCMachineState
*pcms
);
185 void pc_register_ferr_irq(qemu_irq irq
);
186 void pc_acpi_smi_interrupt(void *opaque
, int irq
, int level
);
188 void pc_cpus_init(PCMachineState
*pcms
);
189 void pc_hot_add_cpu(const int64_t id
, Error
**errp
);
190 void pc_acpi_init(const char *default_dsdt
);
192 void pc_guest_info_init(PCMachineState
*pcms
);
194 #define PCI_HOST_PROP_PCI_HOLE_START "pci-hole-start"
195 #define PCI_HOST_PROP_PCI_HOLE_END "pci-hole-end"
196 #define PCI_HOST_PROP_PCI_HOLE64_START "pci-hole64-start"
197 #define PCI_HOST_PROP_PCI_HOLE64_END "pci-hole64-end"
198 #define PCI_HOST_PROP_PCI_HOLE64_SIZE "pci-hole64-size"
199 #define PCI_HOST_BELOW_4G_MEM_SIZE "below-4g-mem-size"
200 #define PCI_HOST_ABOVE_4G_MEM_SIZE "above-4g-mem-size"
203 void pc_pci_as_mapping_init(Object
*owner
, MemoryRegion
*system_memory
,
204 MemoryRegion
*pci_address_space
);
206 void xen_load_linux(PCMachineState
*pcms
);
207 void pc_memory_init(PCMachineState
*pcms
,
208 MemoryRegion
*system_memory
,
209 MemoryRegion
*rom_memory
,
210 MemoryRegion
**ram_memory
);
211 uint64_t pc_pci_hole64_start(void);
212 qemu_irq
pc_allocate_cpu_irq(void);
213 DeviceState
*pc_vga_init(ISABus
*isa_bus
, PCIBus
*pci_bus
);
214 void pc_basic_device_init(ISABus
*isa_bus
, qemu_irq
*gsi
,
215 ISADevice
**rtc_state
,
220 void pc_init_ne2k_isa(ISABus
*bus
, NICInfo
*nd
);
221 void pc_cmos_init(PCMachineState
*pcms
,
222 BusState
*ide0
, BusState
*ide1
,
224 void pc_nic_init(PCMachineClass
*pcmc
, ISABus
*isa_bus
, PCIBus
*pci_bus
);
225 void pc_pci_device_init(PCIBus
*pci_bus
);
227 typedef void (*cpu_set_smm_t
)(int smm
, void *arg
);
229 void ioapic_init_gsi(GSIState
*gsi_state
, const char *parent_name
);
231 ISADevice
*pc_find_fdc0(void);
232 int cmos_get_fd_drive_type(FloppyDriveType fd0
);
234 #define FW_CFG_IO_BASE 0x510
236 #define PORT92_A20_LINE "a20"
240 I2CBus
*piix4_pm_init(PCIBus
*bus
, int devfn
, uint32_t smb_io_base
,
241 qemu_irq sci_irq
, qemu_irq smi_irq
,
242 int smm_enabled
, DeviceState
**piix4_pm
);
248 struct PCII440FXState
;
249 typedef struct PCII440FXState PCII440FXState
;
251 #define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
252 #define TYPE_I440FX_PCI_DEVICE "i440FX"
254 #define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
257 * Reset Control Register: PCI-accessible ISA-Compatible Register at address
258 * 0xcf9, provided by the PCI/ISA bridge (PIIX3 PCI function 0, 8086:7000).
260 #define RCR_IOPORT 0xcf9
262 PCIBus
*i440fx_init(const char *host_type
, const char *pci_type
,
263 PCII440FXState
**pi440fx_state
, int *piix_devfn
,
264 ISABus
**isa_bus
, qemu_irq
*pic
,
265 MemoryRegion
*address_space_mem
,
266 MemoryRegion
*address_space_io
,
268 ram_addr_t below_4g_mem_size
,
269 ram_addr_t above_4g_mem_size
,
270 MemoryRegion
*pci_memory
,
271 MemoryRegion
*ram_memory
);
273 PCIBus
*find_i440fx(void);
275 extern PCIDevice
*piix4_dev
;
276 int piix4_init(PCIBus
*bus
, ISABus
**isa_bus
, int devfn
);
279 void pc_system_firmware_init(MemoryRegion
*rom_memory
,
283 void pc_madt_cpu_entry(AcpiDeviceIf
*adev
, int uid
,
284 const CPUArchIdList
*apic_ids
, GArray
*entry
);
288 #define E820_RESERVED 2
291 #define E820_UNUSABLE 5
293 int e820_add_entry(uint64_t, uint64_t, uint32_t);
294 int e820_get_num_entries(void);
295 bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
297 extern GlobalProperty pc_compat_3_1
[];
298 extern const size_t pc_compat_3_1_len
;
300 extern GlobalProperty pc_compat_3_0
[];
301 extern const size_t pc_compat_3_0_len
;
303 extern GlobalProperty pc_compat_2_12
[];
304 extern const size_t pc_compat_2_12_len
;
306 extern GlobalProperty pc_compat_2_11
[];
307 extern const size_t pc_compat_2_11_len
;
309 extern GlobalProperty pc_compat_2_10
[];
310 extern const size_t pc_compat_2_10_len
;
312 extern GlobalProperty pc_compat_2_9
[];
313 extern const size_t pc_compat_2_9_len
;
315 #define PC_COMPAT_2_8 \
318 .driver = TYPE_X86_CPU,\
319 .property = "tcg-cpuid",\
323 .driver = "kvmclock",\
324 .property = "x-mach-use-reliable-get-clock",\
328 .driver = "ICH9-LPC",\
329 .property = "x-smi-broadcast",\
333 .driver = TYPE_X86_CPU,\
334 .property = "vmware-cpuid-freq",\
338 .driver = "Haswell-" TYPE_X86_CPU,\
339 .property = "stepping",\
343 #define PC_COMPAT_2_7 \
346 .driver = TYPE_X86_CPU,\
347 .property = "l3-cache",\
351 .driver = TYPE_X86_CPU,\
352 .property = "full-cpuid-auto-level",\
356 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
357 .property = "family",\
361 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
362 .property = "model",\
366 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
367 .property = "stepping",\
371 .driver = "isa-pcspk",\
372 .property = "migrate",\
376 #define PC_COMPAT_2_6 \
379 .driver = TYPE_X86_CPU,\
380 .property = "cpuid-0xb",\
383 .driver = "vmxnet3",\
384 .property = "romfile",\
388 .driver = TYPE_X86_CPU,\
389 .property = "fill-mtrr-mask",\
393 .driver = "apic-common",\
394 .property = "legacy-instance-id",\
398 #define PC_COMPAT_2_5 \
401 /* Helper for setting model-id for CPU models that changed model-id
402 * depending on QEMU versions up to QEMU 2.4.
404 #define PC_CPU_MODEL_IDS(v) \
406 .driver = "qemu32-" TYPE_X86_CPU,\
407 .property = "model-id",\
408 .value = "QEMU Virtual CPU version " v,\
411 .driver = "qemu64-" TYPE_X86_CPU,\
412 .property = "model-id",\
413 .value = "QEMU Virtual CPU version " v,\
416 .driver = "athlon-" TYPE_X86_CPU,\
417 .property = "model-id",\
418 .value = "QEMU Virtual CPU version " v,\
421 #define PC_COMPAT_2_4 \
423 PC_CPU_MODEL_IDS("2.4.0") \
425 .driver = "Haswell-" TYPE_X86_CPU,\
430 .driver = "Haswell-noTSX-" TYPE_X86_CPU,\
435 .driver = "Broadwell-" TYPE_X86_CPU,\
440 .driver = "Broadwell-noTSX-" TYPE_X86_CPU,\
445 .driver = "host" "-" TYPE_X86_CPU,\
446 .property = "host-cache-info",\
450 .driver = TYPE_X86_CPU,\
451 .property = "check",\
455 .driver = "qemu64" "-" TYPE_X86_CPU,\
456 .property = "sse4a",\
460 .driver = "qemu64" "-" TYPE_X86_CPU,\
465 .driver = "qemu64" "-" TYPE_X86_CPU,\
466 .property = "popcnt",\
470 .driver = "qemu32" "-" TYPE_X86_CPU,\
471 .property = "popcnt",\
474 .driver = "Opteron_G2" "-" TYPE_X86_CPU,\
475 .property = "rdtscp",\
478 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
479 .property = "rdtscp",\
482 .driver = "Opteron_G4" "-" TYPE_X86_CPU,\
483 .property = "rdtscp",\
486 .driver = "Opteron_G5" "-" TYPE_X86_CPU,\
487 .property = "rdtscp",\
492 #define PC_COMPAT_2_3 \
494 PC_CPU_MODEL_IDS("2.3.0") \
496 .driver = TYPE_X86_CPU,\
500 .driver = "qemu64" "-" TYPE_X86_CPU,\
501 .property = "min-level",\
502 .value = stringify(4),\
504 .driver = "kvm64" "-" TYPE_X86_CPU,\
505 .property = "min-level",\
506 .value = stringify(5),\
508 .driver = "pentium3" "-" TYPE_X86_CPU,\
509 .property = "min-level",\
510 .value = stringify(2),\
512 .driver = "n270" "-" TYPE_X86_CPU,\
513 .property = "min-level",\
514 .value = stringify(5),\
516 .driver = "Conroe" "-" TYPE_X86_CPU,\
517 .property = "min-level",\
518 .value = stringify(4),\
520 .driver = "Penryn" "-" TYPE_X86_CPU,\
521 .property = "min-level",\
522 .value = stringify(4),\
524 .driver = "Nehalem" "-" TYPE_X86_CPU,\
525 .property = "min-level",\
526 .value = stringify(4),\
528 .driver = "n270" "-" TYPE_X86_CPU,\
529 .property = "min-xlevel",\
530 .value = stringify(0x8000000a),\
532 .driver = "Penryn" "-" TYPE_X86_CPU,\
533 .property = "min-xlevel",\
534 .value = stringify(0x8000000a),\
536 .driver = "Conroe" "-" TYPE_X86_CPU,\
537 .property = "min-xlevel",\
538 .value = stringify(0x8000000a),\
540 .driver = "Nehalem" "-" TYPE_X86_CPU,\
541 .property = "min-xlevel",\
542 .value = stringify(0x8000000a),\
544 .driver = "Westmere" "-" TYPE_X86_CPU,\
545 .property = "min-xlevel",\
546 .value = stringify(0x8000000a),\
548 .driver = "SandyBridge" "-" TYPE_X86_CPU,\
549 .property = "min-xlevel",\
550 .value = stringify(0x8000000a),\
552 .driver = "IvyBridge" "-" TYPE_X86_CPU,\
553 .property = "min-xlevel",\
554 .value = stringify(0x8000000a),\
556 .driver = "Haswell" "-" TYPE_X86_CPU,\
557 .property = "min-xlevel",\
558 .value = stringify(0x8000000a),\
560 .driver = "Haswell-noTSX" "-" TYPE_X86_CPU,\
561 .property = "min-xlevel",\
562 .value = stringify(0x8000000a),\
564 .driver = "Broadwell" "-" TYPE_X86_CPU,\
565 .property = "min-xlevel",\
566 .value = stringify(0x8000000a),\
568 .driver = "Broadwell-noTSX" "-" TYPE_X86_CPU,\
569 .property = "min-xlevel",\
570 .value = stringify(0x8000000a),\
572 .driver = TYPE_X86_CPU,\
573 .property = "kvm-no-smi-migration",\
577 #define PC_COMPAT_2_2 \
579 PC_CPU_MODEL_IDS("2.2.0") \
581 .driver = "kvm64" "-" TYPE_X86_CPU,\
586 .driver = "kvm32" "-" TYPE_X86_CPU,\
591 .driver = "Conroe" "-" TYPE_X86_CPU,\
596 .driver = "Penryn" "-" TYPE_X86_CPU,\
601 .driver = "Nehalem" "-" TYPE_X86_CPU,\
606 .driver = "Westmere" "-" TYPE_X86_CPU,\
611 .driver = "SandyBridge" "-" TYPE_X86_CPU,\
616 .driver = "Haswell" "-" TYPE_X86_CPU,\
621 .driver = "Broadwell" "-" TYPE_X86_CPU,\
626 .driver = "Opteron_G1" "-" TYPE_X86_CPU,\
631 .driver = "Opteron_G2" "-" TYPE_X86_CPU,\
636 .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
641 .driver = "Opteron_G4" "-" TYPE_X86_CPU,\
646 .driver = "Opteron_G5" "-" TYPE_X86_CPU,\
651 .driver = "Haswell" "-" TYPE_X86_CPU,\
656 .driver = "Haswell" "-" TYPE_X86_CPU,\
657 .property = "rdrand",\
661 .driver = "Broadwell" "-" TYPE_X86_CPU,\
666 .driver = "Broadwell" "-" TYPE_X86_CPU,\
667 .property = "rdrand",\
671 #define PC_COMPAT_2_1 \
673 PC_CPU_MODEL_IDS("2.1.0") \
675 .driver = "coreduo" "-" TYPE_X86_CPU,\
680 .driver = "core2duo" "-" TYPE_X86_CPU,\
685 #define PC_COMPAT_2_0 \
686 PC_CPU_MODEL_IDS("2.0.0") \
688 .driver = "virtio-scsi-pci",\
689 .property = "any_layout",\
692 .driver = "PIIX4_PM",\
693 .property = "memory-hotplug-support",\
698 .property = "version",\
699 .value = stringify(0x11),\
702 .driver = "nec-usb-xhci",\
703 .property = "superspeed-ports-first",\
707 .driver = "nec-usb-xhci",\
708 .property = "force-pcie-endcap",\
712 .driver = "pci-serial",\
713 .property = "prog_if",\
714 .value = stringify(0),\
717 .driver = "pci-serial-2x",\
718 .property = "prog_if",\
719 .value = stringify(0),\
722 .driver = "pci-serial-4x",\
723 .property = "prog_if",\
724 .value = stringify(0),\
727 .driver = "virtio-net-pci",\
728 .property = "guest_announce",\
732 .driver = "ICH9-LPC",\
733 .property = "memory-hotplug-support",\
736 .driver = "xio3130-downstream",\
737 .property = COMPAT_PROP_PCP,\
740 .driver = "ioh3420",\
741 .property = COMPAT_PROP_PCP,\
745 #define PC_COMPAT_1_7 \
746 PC_CPU_MODEL_IDS("1.7.0") \
748 .driver = TYPE_USB_DEVICE,\
749 .property = "msos-desc",\
753 .driver = "PIIX4_PM",\
754 .property = "acpi-pci-hotplug-with-bridge-support",\
759 .property = HPET_INTCAP,\
760 .value = stringify(4),\
763 #define PC_COMPAT_1_6 \
764 PC_CPU_MODEL_IDS("1.6.0") \
767 .property = "mitigation",\
770 .driver = "qemu64-" TYPE_X86_CPU,\
771 .property = "model",\
772 .value = stringify(2),\
774 .driver = "qemu32-" TYPE_X86_CPU,\
775 .property = "model",\
776 .value = stringify(3),\
778 .driver = "i440FX-pcihost",\
779 .property = "short_root_bus",\
780 .value = stringify(1),\
782 .driver = "q35-pcihost",\
783 .property = "short_root_bus",\
784 .value = stringify(1),\
787 #define PC_COMPAT_1_5 \
788 PC_CPU_MODEL_IDS("1.5.0") \
790 .driver = "Conroe-" TYPE_X86_CPU,\
791 .property = "model",\
792 .value = stringify(2),\
794 .driver = "Conroe-" TYPE_X86_CPU,\
795 .property = "min-level",\
796 .value = stringify(2),\
798 .driver = "Penryn-" TYPE_X86_CPU,\
799 .property = "model",\
800 .value = stringify(2),\
802 .driver = "Penryn-" TYPE_X86_CPU,\
803 .property = "min-level",\
804 .value = stringify(2),\
806 .driver = "Nehalem-" TYPE_X86_CPU,\
807 .property = "model",\
808 .value = stringify(2),\
810 .driver = "Nehalem-" TYPE_X86_CPU,\
811 .property = "min-level",\
812 .value = stringify(2),\
814 .driver = "virtio-net-pci",\
815 .property = "any_layout",\
818 .driver = TYPE_X86_CPU,\
822 .driver = "i440FX-pcihost",\
823 .property = "short_root_bus",\
824 .value = stringify(0),\
826 .driver = "q35-pcihost",\
827 .property = "short_root_bus",\
828 .value = stringify(0),\
831 #define PC_COMPAT_1_4 \
832 PC_CPU_MODEL_IDS("1.4.0") \
834 .driver = "scsi-hd",\
835 .property = "discard_granularity",\
836 .value = stringify(0),\
838 .driver = "scsi-cd",\
839 .property = "discard_granularity",\
840 .value = stringify(0),\
842 .driver = "scsi-disk",\
843 .property = "discard_granularity",\
844 .value = stringify(0),\
847 .property = "discard_granularity",\
848 .value = stringify(0),\
851 .property = "discard_granularity",\
852 .value = stringify(0),\
854 .driver = "ide-drive",\
855 .property = "discard_granularity",\
856 .value = stringify(0),\
858 .driver = "virtio-blk-pci",\
859 .property = "discard_granularity",\
860 .value = stringify(0),\
862 .driver = "virtio-serial-pci",\
863 .property = "vectors",\
864 /* DEV_NVECTORS_UNSPECIFIED as a uint32_t string */\
865 .value = stringify(0xFFFFFFFF),\
867 .driver = "virtio-net-pci", \
868 .property = "ctrl_guest_offloads", \
872 .property = "romfile",\
873 .value = "pxe-e1000.rom",\
875 .driver = "ne2k_pci",\
876 .property = "romfile",\
877 .value = "pxe-ne2k_pci.rom",\
880 .property = "romfile",\
881 .value = "pxe-pcnet.rom",\
883 .driver = "rtl8139",\
884 .property = "romfile",\
885 .value = "pxe-rtl8139.rom",\
887 .driver = "virtio-net-pci",\
888 .property = "romfile",\
889 .value = "pxe-virtio.rom",\
891 .driver = "486-" TYPE_X86_CPU,\
892 .property = "model",\
893 .value = stringify(0),\
896 .driver = "n270" "-" TYPE_X86_CPU,\
897 .property = "movbe",\
901 .driver = "Westmere" "-" TYPE_X86_CPU,\
902 .property = "pclmulqdq",\
906 #define DEFINE_PC_MACHINE(suffix, namestr, initfn, optsfn) \
907 static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \
909 MachineClass *mc = MACHINE_CLASS(oc); \
913 static const TypeInfo pc_machine_type_##suffix = { \
914 .name = namestr TYPE_MACHINE_SUFFIX, \
915 .parent = TYPE_PC_MACHINE, \
916 .class_init = pc_machine_##suffix##_class_init, \
918 static void pc_machine_init_##suffix(void) \
920 type_register(&pc_machine_type_##suffix); \
922 type_init(pc_machine_init_##suffix)
924 extern void igd_passthrough_isa_bridge_create(PCIBus
*bus
, uint16_t gpu_dev_id
);