Both Lunar (6.2.0-41.42) and Mantic (6.5.0-16.16) successfully verified by the 
test plan.
root@ubuntu:~# dmesg -wT
[Wed Jan 10 08:28:27 2024] pci 0000:08:00.0: [1af4:1042] type 00 class 0x010000
[Wed Jan 10 08:28:27 2024] pci 0000:08:00.0: reg 0x14: [mem 
0x00000000-0x00000fff]
[Wed Jan 10 08:28:27 2024] pci 0000:08:00.0: reg 0x20: [mem 
0x00000000-0x00003fff 64bit pref]
[Wed Jan 10 08:28:27 2024] pci 0000:08:00.0: BAR 4: assigned [mem 
0x800800000-0x800803fff 64bit pref]
[Wed Jan 10 08:28:27 2024] pci 0000:08:00.0: BAR 1: assigned [mem 
0xc0c00000-0xc0c00fff]
[Wed Jan 10 08:28:27 2024] virtio-pci 0000:08:00.0: enabling device (0000 -> 
0002)
[Wed Jan 10 08:28:27 2024] virtio_blk virtio6: 4/0/0 default/read/poll queues
[Wed Jan 10 08:28:27 2024] virtio_blk virtio6: [vdc] 10485760 512-byte logical 
blocks (5.37 GB/5.00 GiB)
[Wed Jan 10 08:28:32 2024] pci 0000:09:00.0: [1af4:1042] type 00 class 0x010000
[Wed Jan 10 08:28:32 2024] pci 0000:09:00.0: reg 0x14: [mem 
0x00000000-0x00000fff]
[Wed Jan 10 08:28:32 2024] pci 0000:09:00.0: reg 0x20: [mem 
0x00000000-0x00003fff 64bit pref]
[Wed Jan 10 08:28:32 2024] pci 0000:09:00.0: BAR 4: assigned [mem 
0x800a00000-0x800a03fff 64bit pref]
[Wed Jan 10 08:28:32 2024] pci 0000:09:00.0: BAR 1: assigned [mem 
0xc0a00000-0xc0a00fff]
[Wed Jan 10 08:28:32 2024] virtio-pci 0000:09:00.0: enabling device (0000 -> 
0002)
[Wed Jan 10 08:28:32 2024] virtio_blk virtio7: 4/0/0 default/read/poll queues
[Wed Jan 10 08:28:32 2024] virtio_blk virtio7: [vdd] 10485760 512-byte logical 
blocks (5.37 GB/5.00 GiB)

root@ubuntu:~# lsblk 
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0     7:0    0  74.1M  1 loop /snap/core22/1033
loop1     7:1    0 152.1M  1 loop /snap/lxd/26200
loop2     7:2    0  40.4M  1 loop /snap/snapd/20671
vda     253:0    0    80G  0 disk 
├─vda1  253:1    0    79G  0 part /
├─vda14 253:14   0     4M  0 part 
├─vda15 253:15   0   106M  0 part /boot/efi
└─vda16 259:0    0   913M  0 part /boot
vdb     253:16   0   366K  0 disk 
vdc     253:32   0     5G  0 disk 
vdd     253:48   0     5G  0 disk

** Tags removed: verification-needed-lunar-linux 
verification-needed-mantic-linux
** Tags added: verification-done-lunar-linux verification-done-mantic-linux

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2047382

Title:
  Hotplugging SCSI disk in QEMU VM fails

Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Focal:
  Fix Committed
Status in linux source package in Jammy:
  Fix Committed
Status in linux source package in Lunar:
  Fix Committed
Status in linux source package in Mantic:
  Fix Committed
Status in linux source package in Noble:
  In Progress

Bug description:
  [Impact]
  Hot-plugging SCSI disks for QEMU VMs booting with UEFI and using guest 
kernels >= 6.5 might be broken.
  The inconsistency suggests a potential race condition.

  [Fix]
  Reverting the two specified commits appears to restore reliability.
  ==========
  cc22522fd55e2 PCI: acpiphp: Use pci_assign_unassigned_bridge_resources() only 
for non-root bus
  40613da52b13f PCI: acpiphp: Reassign resources on bridge if necessary
  ==========

  Upstream has resolved the issue by reverting both commits through a commit 
placed below.
  ==========
  5df12742b7e3a Revert "PCI: acpiphp: Reassign resources on bridge if necessary
  ==========

  [Test Plan]
  1. Create a VM
  virt-install --name scsi_test --memory 2048 --vcpus 2 --boot uefi --disk 
path=/home/ubuntu/mantic-server-cloudimg-amd64.img,size=20,format=qcow2,bus=virtio
  -os-variant=ubuntu18.04 --graphics spice --network bridge=virbr0
  2. Prepare two XMLs for adding two disk devices
  # cat disk_X.xml
  <disk type='file' device='disk'>
    <driver name='qemu' type='raw'/>
    <source file='XXX.img'/>
    <target dev='vdX' bus='virtio'/>
  </disk>
  3. Hotplug disks and check for success
  virsh attach-device scsi_test disk_X.xml

  [Where problems could occur]
  The patch reverts two commits that previously addressed long-standing issues 
related to hotplugging devices with large BARs.
  While this reversion may reintroduce legacy issues, it does not introduce new 
problems.
  The associated risks are deemed low, making it worthwhile to address timing 
issues during the hotplugging of SCSI disks in QEMU VM.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2047382/+subscriptions


-- 
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

Reply via email to