Gpu passthrough qemu problem

Can’t boot window10 in qemu on laptop Aspire A715-71G V1.21. Error starting domain: internal error: qemu unexpectedly closed the monitor: qemu-system-x86_64: …/qemu-6.1.0/hw/pci/pci.c:1484: pci_irq_handler: Assertion `0 <= irq_num && irq_num < PCI_NUM_PINS’ failed.

out put of sudo sudo journalctl -p 3 -xb:
Aug 31 19:07:42 ArchM1 kernel: x86/cpu: SGX disabled by BIOS.
Aug 31 19:09:47 ArchM1 kernel: vfio-pci 0000:01:00.1: can’t change power state from D3hot to D0 (config space inaccessible)
Aug 31 19:09:47 ArchM1 kernel: vfio-pci 0000:01:00.1: can’t change power state from D3hot to D0 (config space inaccessible)
Aug 31 19:09:47 ArchM1 systemd-coredump[1347]: [🡕] Process 1330 (qemu-system-x86) of user 65534 dumped core.
░░ Subject: Process 1330 (qemu-system-x86) dumped core
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░ Documentation: man:core(5)
░░
░░ Process 1330 (qemu-system-x86) crashed and dumped core.
░░
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.
Aug 31 19:09:47 ArchM1 kernel: vfio-pci 0000:01:00.1: can’t change power state from D3hot to D0 (config space inaccessible)
Aug 31 19:09:52 ArchM1 libvirtd[343]: Unable to read from monitor: Connection reset by peer
Aug 31 19:09:52 ArchM1 libvirtd[343]: internal error: qemu unexpectedly closed the monitor: qemu-system-x86_64: …/qemu-6.1.0/hw/pci/pci.c:1484: pci_irq_handler: Assertion `0 <= irq_num &&

my iommu group:
IOMMU Group 0:
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [8086:5910] (rev 05)
IOMMU Group 1:
00:01.0 PCI bridge [0604]: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 05)
IOMMU Group 2:
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 630 [8086:591b] (rev 04)
IOMMU Group 3:
00:14.0 USB controller [0c03]: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller [8086:a12f] (rev 31)
00:14.2 Signal processing controller [1180]: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem [8086:a131] (rev 31)
IOMMU Group 4:
00:15.0 Signal processing controller [1180]: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #0 [8086:a160] (rev 31)
00:15.1 Signal processing controller [1180]: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #1 [8086:a161] (rev 31)
IOMMU Group 5:
00:16.0 Communication controller [0780]: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 [8086:a13a] (rev 31)
IOMMU Group 6:
00:17.0 SATA controller [0106]: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] [8086:a103] (rev 31)
IOMMU Group 7:
00:1c.0 PCI bridge [0604]: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #3 [8086:a112] (rev f1)
IOMMU Group 8:
00:1c.3 PCI bridge [0604]: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #4 [8086:a113] (rev f1)
IOMMU Group 9:
00:1f.0 ISA bridge [0601]: Intel Corporation HM175 Chipset LPC/eSPI Controller [8086:a152] (rev 31)
00:1f.2 Memory controller [0580]: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller [8086:a121] (rev 31)
00:1f.3 Audio device [0403]: Intel Corporation CM238 HD Audio Controller [8086:a171] (rev 31)
00:1f.4 SMBus [0c05]: Intel Corporation 100 Series/C230 Series Chipset Family SMBus [8086:a123] (rev 31)
IOMMU Group 10:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)
IOMMU Group 11:
02:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
IOMMU Group 12:
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader [10ec:5287] (rev 01)
03:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12)

i don’t know really know what to do usually there would be a problem with vga controller of nvidia but this is with nvidia audio controller and i can’t find any resources on this

update there are no more error as it seem on the surface after adding




<vendor_id state=‘on’ value=‘randomid’/>




just like in the arch wiki PCI passthrough via OVMF - ArchWiki

into xml config for win10 virtual machine but my machine won’t boot up it stuck in a loop of preparing automatic prepare


and my cpu model for the virtual machine is host-passthrough

It sounds like you are passing a buggy CPU feature. Try the QEMU CPU model for testing.