------- Comment From [email protected] 2025-04-21 01:42 EDT-------
Hi Team,

I have tested the issue on the proposed kernel 6.11.0-26.26
(6.11.0-26-generic). Issue is Not reproducible.

--- Host ENV ---
kernel = 6.11.0-26-generic
uname output = Linux ltcrain85-lp7 6.11.0-26-generic #26-Ubuntu SMP Sat Apr 12 
11:27:39 UTC 2025 ppc64le ppc64le ppc64le GNU/Linux
root@localhost:~# dpkg -l | grep linux-image
ii  linux-image-6.11.0-26-generic          6.11.0-26.26                         
      ppc64el      Linux kernel image for version 6.11.0 on PowerPC 64el SMP
QEMU = QEMU emulator version 9.2.1 (Debian 1:9.2.1+ds-1ubuntu5)
Libvirt = libvirtd (libvirt) 11.0.0

--- Guest ENV ---
Kernel = 6.11.0-26-generic
root@ubuntu-guest:~# dpkg -l | grep linux-image
ii  linux-image-6.11.0-26-generic         6.11.0-26.26                          
     ppc64el      Linux kernel image for version 6.11.0 on PowerPC 64el SMP
uname output = Linux ubuntu-guest 6.11.0-26-generic #26-Ubuntu SMP Sat Apr 12 
11:27:39 UTC 2025 ppc64le ppc64le ppc64le GNU/Linux

--- lspci output ---
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]

--- Steps performed ---
1) Start a ubuntu guest
2) Detach/unbind the pci device from host using virsh nodedev-detach command
3) Attach the device to guest using virsh attach-device command
4) check the device availability in the guest. Device is available in the 
guest. "lspci" lists the device
5) Detach the device from guest using virsh detach-device command
6) Check for warnings on Host console. No Warnings are seen after device is 
detached from guest. And the device detaches successfully from the guest.

--- pci xml used to attach the device ---
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0028' bus='0x01' slot='0x00' function='0x0'/>
</source>
<address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
</hostdev>

--- Guest logs ---

--- Attach logs ---
[   74.306532] pci 0000:00:07.0: [15b3:1015] type 00 class 0x020000 PCIe 
Endpoint
[   74.307566] pci 0000:00:07.0: BAR 0 [mem 0x00000000-0x07ffffff 64bit]
[   74.307628] pci 0000:00:07.0: ROM [mem 0x00000000-0x000fffff pref]
[   74.308355] pci 0000:00:07.0: No hypervisor support for SR-IOV on this 
device, IOV BARs disabled.
[   74.318718] pci 0000:00:07.0: No hypervisor support for SR-IOV on this 
device, IOV BARs disabled.
[   74.319763] pci 0000:00:07.0: Adding to iommu group 0
[   74.319899] pci 0000:00:07.0: BAR 0 [mem 0x210008000000-0x21000fffffff 
64bit]: assigned
[   74.320357] pci 0000:00:07.0: ROM [mem 0x200080200000-0x2000802fffff pref]: 
assigned
[   74.321522] pci 0000:00:07.0: enabling device (0140 -> 0142)
[   75.278383] mlx5_core 0000:00:07.0: firmware version: 14.32.1010
[   75.278548] mlx5_core 0000:00:07.0: 63.008 Gb/s available PCIe bandwidth 
(8.0 GT/s PCIe x8 link)
[   75.568793] mlx5_core 0000:00:07.0: E-Switch: Total vports 42, per vport: 
max uc(128) max mc(2048)
[   75.670733] port_module: 165 callbacks suppressed
[   75.670737] mlx5_core 0000:00:07.0: Port module event: module 0, Cable 
plugged
[   75.934115] mlx5_core 0000:00:07.0: MLX5E: StrdRq(0) RqSz(1024) StrdSz(256) 
RxCqeCmprss(0 basic)
[   75.936538] hwmon hwmon0: temp1_input not attached to any thermal zone
[   75.942624] mlx5_core 0000:00:07.0 enp0s7np0: renamed from eth0
[   76.157816] MACsec IEEE 802.1AE
root@ubuntu-guest:~# lspci
00:01.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:02.0 USB controller: Red Hat, Inc. QEMU XHCI Host Controller (rev 01)
00:03.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI
00:04.0 Communication controller: Red Hat, Inc. Virtio console
00:05.0 SCSI storage controller: Red Hat, Inc. Virtio block device
00:06.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
00:07.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 
Lx]

--- detach logs ---
root@ubuntu-guest:~# lspci
00:01.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:02.0 USB controller: Red Hat, Inc. QEMU XHCI Host Controller (rev 01)
00:03.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI
00:04.0 Communication controller: Red Hat, Inc. Virtio console
00:05.0 SCSI storage controller: Red Hat, Inc. Virtio block device
00:06.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
root@ubuntu-guest:~# dmesg | tail
[   75.670737] mlx5_core 0000:00:07.0: Port module event: module 0, Cable 
plugged
[   75.934115] mlx5_core 0000:00:07.0: MLX5E: StrdRq(0) RqSz(1024) StrdSz(256) 
RxCqeCmprss(0 basic)
[   75.936538] hwmon hwmon0: temp1_input not attached to any thermal zone
[   75.942624] mlx5_core 0000:00:07.0 enp0s7np0: renamed from eth0
[   76.157816] MACsec IEEE 802.1AE
[  122.235941] RTAS: event: 2, Type: Hotplug Event (229), Severity: 1
[  122.403764] mlx5_core 0000:00:07.0: E-Switch: Unload vfs: mode(LEGACY), 
nvfs(0), necvfs(0), active vports(0)
[  122.445768] mlx5_core 0000:00:07.0: E-Switch: Disable: mode(LEGACY), 
nvfs(0), necvfs(0), active vports(0)
[  126.017815] mlx5_core 0000:00:07.0: E-Switch: Disable: mode(LEGACY), 
nvfs(0), necvfs(0), active vports(0)
[  126.495024] mlx5_core 0000:00:07.0: E-Switch: cleanup

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2104893

Title:
  WARNING: CPU: 18 PID: 3683 at
  arch/powerpc/kvm/../../../virt/kvm/vfio.c Call Traces seen when pci
  device is detached from the kvm guest

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/2104893/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to