All of lore.kernel.org
 help / color / mirror / Atom feed
* Different behavior with vfio-pci between 6.4.8->6.5.5
@ 2023-10-31 15:33 Juhani Rautiainen
  2023-10-31 16:19 ` Alex Williamson
  0 siblings, 1 reply; 3+ messages in thread
From: Juhani Rautiainen @ 2023-10-31 15:33 UTC (permalink / raw)
  To: kvm

Hi!

I noticed a change in my home server which breaks some of KVM VM's
with newer kernels. I have two Intel I350 cards: one with two ports
and another with four ports. I have been using the card with two ports
in a firewall VM with vfio-pci. Other ports have been given to other
VM's as host interface devices in KVM. When I upgraded to 6.6 I
noticed that the four port card is now using vfio-pci driver and not
igb as with 6.4.8 did and those VM's using host interfaces didn't
start. I had earlier built 6.5.5 so I tried that and it works same way
as the 6.6 kernel does, so if something has changed it is probably in
6.5 series. I have this in /etc/modprope.d/vfio.conf:

options vfio_pci ids=8086:1521

With  6.4.8 lspci -vv shows this:
01:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network
Connection (rev 01)
        Subsystem: Intel Corporation Ethernet Server Adapter I350-T4
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 67
        IOMMU group: 11
....
        Kernel driver in use: igb
        Kernel modules: igb

And with 6.5.5 I get:
01:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network
Connection (rev 01)
        Subsystem: Intel Corporation Ethernet Server Adapter I350-T4
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 255
        IOMMU group: 11
....
        Kernel driver in use: vfio-pci
        Kernel modules: igb

Have I been just lucky previously with my config or did something
change? I tried to figure out the change from 6.5 release notes but
could not. My home server is running on AMD Ryzen 5700g and Alma Linux
8.8 (I just compile newer kernels out of habit).

Thanks,
Juhani
-- 
Juhani Rautiainen                                   jrauti@iki.fi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-01  3:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31 15:33 Different behavior with vfio-pci between 6.4.8->6.5.5 Juhani Rautiainen
2023-10-31 16:19 ` Alex Williamson
2023-11-01  3:55   ` Juhani Rautiainen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.