RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2024605 - 6.1.0 introduces regression in q35, unable to add more than 15 pcie-root-ports
Summary: 6.1.0 introduces regression in q35, unable to add more than 15 pcie-root-ports
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: qemu-kvm
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Julia Suvorova
QA Contact: Yiqian Wei
URL:
Whiteboard:
: 2023919 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-18 12:57 UTC by Yedidyah Bar David
Modified: 2023-04-18 15:42 UTC (History)
22 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-18 15:32:14 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-103159 0 None None None 2021-11-18 13:00:52 UTC

Description Yedidyah Bar David 2021-11-18 12:57:44 UTC
Description of problem:

[1] https://gitlab.com/qemu-project/qemu/-/issues/641

[2] https://lists.ovirt.org/archives/list/devel@ovirt.org/thread/BDYP62MAJL2QVQZ7RHM2USZD4HXBGUA6/

[3] https://lists.ovirt.org/archives/list/users@ovirt.org/thread/QKRH7PUV6FC2NN5B2G4H5IK7KGXOHZ37/

Version-Release number of selected component (if applicable):
6.1.0

How reproducible:
I think always

Steps to Reproduce:
1. I think this is enough - copying from [1] above:

qemu-system-x86_64 -M q35 -nodefaults \
-device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 \
-device VGA,bus=pci.1 \
-device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 \
-device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2 \
-device pcie-root-port,port=0x13,chassis=5,id=pci.5,bus=pcie.0,addr=0x2.0x3 \
-device pcie-root-port,port=0x14,chassis=6,id=pci.6,bus=pcie.0,addr=0x2.0x4 \
-device pcie-root-port,port=0x15,chassis=7,id=pci.7,bus=pcie.0,addr=0x2.0x5 \
-device pcie-root-port,port=0x16,chassis=8,id=pci.8,bus=pcie.0,addr=0x2.0x6 \
-device pcie-root-port,port=0x17,chassis=9,id=pci.9,bus=pcie.0,addr=0x2.0x7 \
-device pcie-root-port,port=0x18,chassis=10,id=pci.10,bus=pcie.0,multifunction=on,addr=0x3 \
-device pcie-root-port,port=0x19,chassis=11,id=pci.11,bus=pcie.0,addr=0x3.0x1 \
-device pcie-root-port,port=0x1a,chassis=12,id=pci.12,bus=pcie.0,addr=0x3.0x2 \
-device pcie-root-port,port=0x1b,chassis=13,id=pci.13,bus=pcie.0,addr=0x3.0x3 \
-device pcie-root-port,port=0x1c,chassis=14,id=pci.14,bus=pcie.0,addr=0x3.0x4 \
-device pcie-root-port,port=0x1d,chassis=15,id=pci.15,bus=pcie.0,addr=0x3.0x5 \
-device pcie-root-port,port=0x1e,chassis=16,id=pci.16,bus=pcie.0,addr=0x3.0x6

Actual results:
qemu starts, but gets stuck, before outputting even messages from its BIOS

Expected results:
machines boots correctly

Additional info:

Opening this bug following Danilo's suggestion in [3].

IMO this is pretty urgent, can't wait until 8.6 is stabilized. Stream users are already affected. Please consider a revert (to relevant patches, or to qemu 6.0.0 - I realize that both are not easy) if it can't be fixed quickly. Thanks.

Comment 1 Alan Pevec 2021-11-18 13:27:49 UTC
See CS9 bz https://bugzilla.redhat.com/show_bug.cgi?id=2006409
@virt-maint do you want to move this to a CS8 clone of bug 2006409 ?

Comment 2 Alan Pevec 2021-11-18 13:30:22 UTC
> @virt-maint do you want to move this to a CS8 clone of bug 2006409 ?

actually there is RHEL 8 bz, should this be marked as a dup of bug 2007129 ?

Comment 3 Yedidyah Bar David 2021-11-22 10:57:19 UTC
*** Bug 2023919 has been marked as a duplicate of this bug. ***

Comment 4 qing.wang 2021-11-26 01:55:28 UTC
Hit similar issue on
Red Hat Enterprise Linux release 8.6 Beta (Ootpa)
4.18.0-352.el8.x86_64
qemu-kvm-6.1.0-5.module+el8.6.0+13430+8fdd5f85.x86_64
seabios-bin-1.14.0-1.module+el8.6.0+12861+13975d62.noarch
edk2-ovmf-20210527gite1999b264f1f-3.el8.noarch
virtio-win-prewhql-0.1-214.iso


scenario 1: no "-global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off \"
It can not boot utils only keep 10 pcie-root-port.

scenario 2: add "-global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off \"
It may works 20 pcie-root-port.



/usr/libexec/qemu-kvm \
    -name 'avocado-vt-vm1'  \
    -sandbox on  \
    -machine q35,memory-backend=mem-machine_mem \
    -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off \
    -device pcie-root-port,id=pcie-root-port-0,multifunction=on,bus=pcie.0,addr=0x1,chassis=1 \
    -device pcie-pci-bridge,id=pcie-pci-bridge-0,addr=0x0,bus=pcie-root-port-0  \
    -nodefaults \
    -device VGA,bus=pcie.0,addr=0x2 \
    -m 30720 \
    -object memory-backend-ram,size=30720M,id=mem-machine_mem  \
    -smp 16,maxcpus=16,cores=8,threads=1,dies=1,sockets=2  \
    -cpu 'EPYC-Rome',+kvm_pv_unhalt \
    \
    -device pcie-root-port,id=pcie-root-port-1,port=0x1,addr=0x1.0x1,bus=pcie.0,chassis=2 \
    -device qemu-xhci,id=usb1,bus=pcie-root-port-1,addr=0x0 \
    -device usb-ehci,id=ehci,bus=pcie.0,addr=0x3 \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
    -device pcie-root-port,id=pcie-root-port-2,port=0x2,addr=0x1.0x2,bus=pcie.0,chassis=3 \
    -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pcie-root-port-2,addr=0x0 \
    -blockdev node-name=file_image1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=/home/kvm_autotest_root/images/rhel840-64-virtio-scsi.qcow2,cache.direct=on,cache.no-flush=off \
    -blockdev node-name=drive_image1,driver=qcow2,read-only=off,cache.direct=on,cache.no-flush=off,file=file_image1 \
    -device scsi-hd,id=image1,drive=drive_image1,bootindex=0,write-cache=on \
    -device pcie-root-port,id=pcie-root-port-3,port=0x3,addr=0x1.0x3,bus=pcie.0,chassis=4 \
    -device virtio-net-pci,mac=9a:05:a8:78:e4:71,id=idV2JV5O,netdev=idhO327p,bus=pcie-root-port-3,addr=0x0  \
    -netdev tap,id=idhO327p,vhost=on  \
    -vnc :5  \
    -monitor stdio \
    -qmp tcp:0:5955,server=on,wait=off \
    -rtc base=utc,clock=host,driftfix=slew  \
    -boot menu=off,order=cdn,once=c,strict=off \
    -enable-kvm \
    -device pcie-root-port,id=pcie_extra_root_port_0,multifunction=on,bus=pcie.0,addr=0x4,chassis=5 \
    -device pcie-root-port,id=pcie_extra_root_port_1,addr=0x4.0x1,bus=pcie.0,chassis=6 \
    -device pcie-root-port,id=pcie_extra_root_port_2,addr=0x4.0x2,bus=pcie.0,chassis=7 \
    -device pcie-root-port,id=pcie_extra_root_port_3,addr=0x4.0x3,bus=pcie.0,chassis=8 \
    -device pcie-root-port,id=pcie_extra_root_port_4,addr=0x4.0x4,bus=pcie.0,chassis=9 \
    -device pcie-root-port,id=pcie_extra_root_port_5,addr=0x4.0x5,bus=pcie.0,chassis=10 \
    -device pcie-root-port,id=pcie_extra_root_port_6,addr=0x4.0x6,bus=pcie.0,chassis=11 \
    -device pcie-root-port,id=pcie_extra_root_port_7,addr=0x4.0x7,bus=pcie.0,chassis=12 \
    -device pcie-root-port,id=pcie_extra_root_port_8,multifunction=on,bus=pcie.0,addr=0x5,chassis=13 \
    -device pcie-root-port,id=pcie_extra_root_port_9,addr=0x5.0x1,bus=pcie.0,chassis=14 \
    -device pcie-root-port,id=pcie_extra_root_port_10,addr=0x5.0x2,bus=pcie.0,chassis=15 \
    -device pcie-root-port,id=pcie_extra_root_port_11,addr=0x5.0x3,bus=pcie.0,chassis=16 \
    -device pcie-root-port,id=pcie_extra_root_port_12,addr=0x5.0x4,bus=pcie.0,chassis=17 \
    -device pcie-root-port,id=pcie_extra_root_port_13,addr=0x5.0x5,bus=pcie.0,chassis=18 \
    -device pcie-root-port,id=pcie_extra_root_port_14,addr=0x5.0x6,bus=pcie.0,chassis=19 \
    -device pcie-root-port,id=pcie_extra_root_port_15,addr=0x5.0x7,bus=pcie.0,chassis=20 \
    -device pcie-root-port,id=pcie_extra_root_port_16,multifunction=on,bus=pcie.0,addr=0x6,chassis=21 \
    -device pcie-root-port,id=pcie_extra_root_port_17,addr=0x6.0x1,bus=pcie.0,chassis=22 \
    -device pcie-root-port,id=pcie_extra_root_port_18,addr=0x6.0x2,bus=pcie.0,chassis=23 \
    -device pcie-root-port,id=pcie_extra_root_port_19,addr=0x6.0x3,bus=pcie.0,chassis=24

Comment 5 Clint Goudie 2021-12-11 22:11:18 UTC
If you are looking at this post, because you've already upgraded your ovirt hosts (or because you intend to):

If you've already updated to the 6.1.0 version, run dnf downgrade qemu* (multiple times potentially) until you have returned to 6.0.0, which in my case came from the ovirt repo.

Next vi /etc/yum.repos.d/CentOS-Stream-AppStream.repo 

If your file has an exclude line, space separated add qemu* like so: 

exclude=qemu* rsyslog*-8.2102.0-6*

If your file does not have an exclude line add one to the bottom of the file:
exclude=qemu*

Comment 6 Evgeny Slutsky 2022-02-08 10:53:21 UTC
this also affects ocp-on-rhv installations, currently, we have no way to override the type, and 'Q35 Bios' is the default in our RHCOS templates.

Comment 7 Igor Mammedov 2022-12-14 09:38:01 UTC
fixed upstream with commit:
  c318bef76206

Comment 15 Yash Mankad 2023-04-18 15:32:14 UTC
(In reply to Igor Mammedov from comment #7)
> fixed upstream with commit:
>   c318bef76206

VERIFIED by Red Hat Virtualization QE.
The commit that fixes this is present in QEMU 6.2 and in RHEL since 8.6 with qemu-kvm-6.2.0-2.module+el8.6.0+13738+17338784

CLOSING this BZ as CURRENTRELEASE


Note You need to log in before you can comment on or make changes to this bug.