You have been subscribed to a public bug: ---Problem Description--- kvmppc_set_passthru_irq_hv: Could not assign IRQ map traces are seen when pci device is attached to kvm guest when "xive=off" is set
root@ltcrain8og-lp6:~# lspci 0028:01:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx] 0028:01:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx] root@ltcrain8og-lp6:~/NET# lspci -nnk -s 0028:01:00.0 0028:01:00.0 Ethernet controller [0200]: Mellanox Technologies MT27710 Family [ConnectX-4 Lx] [15b3:1015] Subsystem: IBM Device [1014:061e] Kernel driver in use: vfio-pci Kernel modules: mlx5_core root@ltcrain8og-lp6:~/NET# lspci -nnk -s 0028:01:00.1 0028:01:00.1 Ethernet controller [0200]: Mellanox Technologies MT27710 Family [ConnectX-4 Lx] [15b3:1015] Subsystem: IBM Device [1014:061e] Kernel driver in use: vfio-pci Kernel modules: mlx5_core --- Steps to reproduce --- 1. Start a guest with kernel 2. unbind the pci device from host using below command root@ltcrain8og-lp6:~/NET# virsh nodedev-detach pci_0028_01_00_0 Device pci_0028_01_00_0 detached root@ltcrain8og-lp6:~/NET# virsh nodedev-detach pci_0028_01_00_1 Device pci_0028_01_00_1 detached 3. Now attach the pci device to guest using virsh attach-device command. The xml snippet used is given below root@ltcrain8og-lp6:~/NET# vi pci2.xml <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0028' bus='0x01' slot='0x00' function='0x0'/> </source> </hostdev> root@ltcrain8og-lp6:~/NET# virsh attach-device vm pci2.xml Device attached successfully 4. On guest side the pci device gets attached successfully, and interface comes up. But the following traces are seen every time the device is attached [57906.347794] kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (100,4900) [57906.347812] kvmppc_set_passthru_irq (irq 100, gsi 4900) fails: -2 [57906.347817] vfio-pci 0028:01:00.0: irq bypass producer (token 00000000c84b35a9) registration fails: -2 [57906.357879] kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (100,4900) [57906.357885] kvmppc_set_passthru_irq (irq 100, gsi 4900) fails: -2 [57906.357889] vfio-pci 0028:01:00.0: irq bypass producer (token 00000000c84b35a9) registration fails: -2 [57906.357983] kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (101,4901) [57906.357986] kvmppc_set_passthru_irq (irq 101, gsi 4901) fails: -2 [57906.357989] vfio-pci 0028:01:00.0: irq bypass producer (token 0000000024362fe0) registration fails: -2 [57906.368181] kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (100,4900) [57906.368187] kvmppc_set_passthru_irq (irq 100, gsi 4900) fails: -2 [57906.368190] vfio-pci 0028:01:00.0: irq bypass producer (token 00000000c84b35a9) registration fails: -2 [57906.368283] kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (101,4901) [57906.368288] kvmppc_set_passthru_irq (irq 101, gsi 4901) fails: -2 [57906.368292] vfio-pci 0028:01:00.0: irq bypass producer (token 0000000024362fe0) registration fails: -2 [57906.368384] kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (102,4902) [57906.368389] kvmppc_set_passthru_irq (irq 102, gsi 4902) fails: -2 [57906.368392] vfio-pci 0028:01:00.0: irq bypass producer (token 00000000f9dfc684) registration fails: -2 [57906.378034] kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (100,4900) [57906.378039] kvmppc_set_passthru_irq (irq 100, gsi 4900) fails: -2 [57906.378042] vfio-pci 0028:01:00.0: irq bypass producer (token 00000000c84b35a9) registration fails: -2 [57906.378135] kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (101,4901) [57906.378140] kvmppc_set_passthru_irq (irq 101, gsi 4901) fails: -2 [57906.378143] vfio-pci 0028:01:00.0: irq bypass producer (token 0000000024362fe0) registration fails: -2 [57906.378234] kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (102,4902) [57906.378238] kvmppc_set_passthru_irq (irq 102, gsi 4902) fails: -2 Contact Information = sthou...@in.ibm.com ---uname output--- na Machine Type = NA ---Debugger--- A debugger is not configured Posted v1 upstream: https://lore.kernel.org/all/20250425185641.1611857-1-amach...@linux.ibm.com/ ~Amit mirorring to distro for awareness. ** Affects: linux (Ubuntu) Importance: Undecided Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) Status: New ** Tags: architecture-ppc64le bugnameltc-212593 severity-medium targetmilestone-inin--- -- kvmppc_set_passthru_irq_hv: Could not assign IRQ map traces are seen when pci device is attached to kvm guest when "xive=off" is set https://bugs.launchpad.net/bugs/2109951 You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp