Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #86862 > unrolled thread

Bug#1102914: VMs don't start up when being passed through a PCI device

Started bySalvatore Bonaccorso <carnil@debian.org>
First post2025-04-13 09:10 +0200
Last post2025-04-13 09:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#1102914: VMs don't start up when being passed through a PCI device Salvatore Bonaccorso <carnil@debian.org> - 2025-04-13 09:10 +0200
    Processed: Re: Bug#1102914: VMs don't start up when being passed  through a PCI device "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-04-13 09:10 +0200

#86862 — Bug#1102914: VMs don't start up when being passed through a PCI device

FromSalvatore Bonaccorso <carnil@debian.org>
Date2025-04-13 09:10 +0200
SubjectBug#1102914: VMs don't start up when being passed through a PCI device
Message-ID<KAZDz-dazz-7@gated-at.bofh.it>
Control: reassign -1 src:linux
Control: forcemerge 1102914 -1

On Sun, Apr 13, 2025 at 08:53:13AM +0200, Bernd Rinn wrote:
> Package: linux-image-amd64
> Version: 6.1.133-1
> 
> Description:
> I noticed a regression with the most recent kernel 6.1.0-33 (6.1.133) of Debian Bookworm:
> libvirtd VMs don't start up anymore when they are being passed through a PCI
> device (in my case the PCI device is a network card). The error message is:
> 
> """
> Apr 13 07:35:08 noc libvirtd\[4984\]: libvirt version: 9.0.0, package: 9.0.0-4+deb12u2 (Debian)
> Apr 13 07:35:08 xyz libvirtd\[4984\]: hostname: xyz
> Apr 13 07:35:08 xyz libvirtd\[4984\]: Unable to read from monitor: Connection reset by peer
> Apr 13 07:35:08 xyz libvirtd\[4984\]: internal error: qemu unexpectedly
> closed the monitor: 2025-04-13T05:35:08.436709Z qemu-system-x86_64: -device
> {"driver":"vfio-pci","host":"0000:05:00.0","id":"hostdev0","bus":"
> pci.8","addr":"0x0"}: VFIO_MAP_DMA failed: Cannot allocate memory
> 2025-04-13T05:35:08.447462Z qemu-system-x86_64: -device {"driver":"vfio-pci","host":"0000:05:00.0","id":"hostdev0","bus":"pci.8","addr":"0x0"}:
> vfio 0000:05:00.0: failed to set
> """
> 
> The definition of the PCI device pass through looks like this:
> 
> """
> <hostdev mode="subsystem" type="pci" managed="yes">
> <driver name="vfio"/>
> <source>
> <address domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
> </source>
> <alias name="hostdev0"/>
> <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
> </hostdev>
> """
> 
> When reverting the kernel back to previous version 6.1.0-32 (6.1.129), the
> VM boots up OK, i.e. the error is gone.

Given in the above PCI passthrough is involved I suspect this has the
same root cause as #1102914 .

Can you bisect the changes between 6.1.129 and 6.1.133 to identify the
offending commit? Can you test 6.1.134 from upstream?

As mentioned in the other bugreport I will look at it ASAP.

Regards,
Salvatore

[toc] | [next] | [standalone]


#86863 — Processed: Re: Bug#1102914: VMs don't start up when being passed through a PCI device

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2025-04-13 09:10 +0200
SubjectProcessed: Re: Bug#1102914: VMs don't start up when being passed through a PCI device
Message-ID<KAZDz-dazz-9@gated-at.bofh.it>
In reply to#86862
Processing control commands:

> reassign -1 src:linux
Bug #1102914 [linux-image-amd64] VMs don't start up when being passed through a PCI device
Bug reassigned from package 'linux-image-amd64' to 'src:linux'.
No longer marked as found in versions linux-signed-amd64/6.1.133+1.
Ignoring request to alter fixed versions of bug #1102914 to the same values previously set
> forcemerge 1102914 -1
Bug #1102914 [src:linux] VMs don't start up when being passed through a PCI device
Merged 1102914

-- 
1102914: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102914
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web