Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1055337

Summary: fail to specify order for the pcie-switch boot device with bootindex option
Product: Red Hat Enterprise Linux 7 Reporter: FuXiangChun <xfu>
Component: seabiosAssignee: Amos Kong <akong>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: ailan, flang, hhuang, huding, juzhang, knoel, michen, rhod, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-17 06:34:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
pcie-switch devices boot order none

Description FuXiangChun 2014-01-20 03:15:04 UTC
Description of problem:
As subject, Bootindex option cann't specify boot order for pcie-switch device.  without pcie-switch, bootindex option works.  I attached screenshot of seabios.

Version-Release number of selected component (if applicable):
# uname -r
3.10.0-73.el7.x86_64

# rpm -qa|grep qemu
qemu-kvm-tools-1.5.3-37.el7.x86_64
libvirt-daemon-driver-qemu-1.1.1-12.el7.x86_64
qemu-kvm-1.5.3-37.el7.x86_64
qemu-kvm-debuginfo-1.5.3-37.el7.x86_64
qemu-img-1.5.3-37.el7.x86_64
qemu-guest-agent-1.5.3-37.el7.x86_64
ipxe-roms-qemu-20130517-1.gitc4bce43.el7.noarch
qemu-kvm-common-1.5.3-37.el7.x86_64

# rpm -qa|grep seabios
seabios-1.7.2.2-10.el7.x86_64
seabios-bin-1.7.2.2-10.el7.x86_64



How reproducible:


Steps to Reproduce:
1./usr/libexec/qemu-kvm -name 'pcie-switch' -m 4G -smp 4,cores=2,threads=2,sockets=1 -M q35 -cpu SandyBridge -rtc base=utc,clock=host,driftfix=slew -k en-us -boot menu=on -monitor stdio -vnc :1 -spice disable-ticketing,port=5931 -qmp tcp:0:5555,server,nowait -vga qxl \
-device ioh3420,bus=pcie.0,id=root.0 -device x3130-upstream,bus=root.0,id=upstream -device xio3130-downstream,bus=upstream,id=downstream0,chassis=1 -device x3130-upstream,bus=downstream0,id=upstream1 -device xio3130-downstream,bus=upstream1,id=downstream1,chassis=2 -device xio3130-downstream,bus=upstream1,id=downstream2,chassis=3 -device xio3130-downstream,bus=upstream1,id=downstream3,chassis=4 -device xio3130-downstream,bus=upstream1,id=downstream4,chassis=5 -device xio3130-downstream,bus=upstream1,id=downstream5,chassis=6 -device xio3130-downstream,bus=upstream1,id=downstream6,chassis=7 -drive file=/home/RHEL-Server-7.0-64.qcow2,if=none,id=drive-scsi-disk,format=qcow2,cache=none,werror=stop,rerror=stop -device virtio-scsi-pci,id=scsi0,bus=downstream1 -device scsi-disk,drive=drive-scsi-disk,bus=scsi0.0,scsi-id=0,lun=0,id=scsi-disk,bootindex=1 
-device virtio-net-pci,netdev=fuxc,mac=00:24:21:7f:0d:10,id=n1,bus=downstream2,bootindex=4 -netdev tap,id=fuxc,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=fuxc1,mac=00:24:21:7f:0d:11,id=n2,bus=downstream3,bootindex=3 -netdev tap,id=fuxc1,vhost=on,script=/etc/qemu-ifup -device usb-ehci,bus=downstream4,id=usb_controller1 -drive  file=/home/usb-ehci-1.qcow2,if=none,id=drive-usb-2-1,media=disk,format=qcow2,cache=none -device usb-storage,drive=drive-usb-2-1,id=usb1,bootindex=5 -device usb-ehci,bus=downstream5,id=usb_controller2 -drive  file=/home/usb-ehci-2.qcow2,if=none,id=drive-usb-2-2,media=disk,format=qcow2,cache=none -device usb-storage,drive=drive-usb-2-2,id=usb2,bootindex=6  -device e1000,netdev=fuxc3,mac=00:24:21:7f:0d:13,id=n3,bus=downstream6,bootindex=2 -netdev tap,id=fuxc3,vhost=on,script=/etc/qemu-ifup

2.press F12  after qemu-kvm started

3.check boot order 

Actual results:
wrong boot list(bootindex option doesn't work)

Expected results:
bootindex works

Additional info:

Comment 2 FuXiangChun 2014-01-20 03:32:39 UTC
Created attachment 852601 [details]
pcie-switch devices boot order

Comment 3 Amos Kong 2014-02-17 03:50:12 UTC
Hi XiangChun,

Can you list the detail order that you expected? I checked the attachment and tested with upstream, the order is right.

Comment 4 FuXiangChun 2014-02-17 05:51:56 UTC
(In reply to Amos Kong from comment #3)
> Hi XiangChun,
> 
> Can you list the detail order that you expected? I checked the attachment
> and tested with upstream, the order is right.

Re-tested this bug with comment 0, and double-check boot list via F12. Boot order is right. Bootindex option works well. Understanding is wrong before. Anyway, I think you can close this bug now.

Comment 5 Amos Kong 2014-02-17 06:34:11 UTC
Thanks for your confirm.