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 2086407 - qemu reboot problem with seabios 1.16.0 [rhel.9.1.0]
Summary: qemu reboot problem with seabios 1.16.0 [rhel.9.1.0]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: seabios
Version: 9.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Xueqiang Wei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-16 05:18 UTC by Gerd Hoffmann
Modified: 2022-11-15 11:00 UTC (History)
7 users (show)

Fixed In Version: seabios-1.16.0-3.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 10:12:39 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/src seabios merge_requests 4 0 None opened reset: force standard PCI configuration access 2022-05-24 11:47:44 UTC
Red Hat Issue Tracker RHELPLAN-122062 0 None None None 2022-05-16 05:34:11 UTC
Red Hat Product Errata RHBA-2022:8051 0 None None None 2022-11-15 10:13:03 UTC

Description Gerd Hoffmann 2022-05-16 05:18:40 UTC
This bug was initially created as a copy of Bug #2083884

Description of problem:

QEMU fails to reboot with seabios 1.16.0


Version-Release number of selected component (if applicable):
CentOS Stream 8 seabios 1.16.0-1.module_el8.7.0+1140+ff0772f9 

How reproducible:
100%

Steps to Reproduce:
Please see more details here: https://gitlab.com/qemu-project/qemu/-/issues/766 

Actual results:
Reboot is not possible


Expected results:
Reboot possible


Additional info:
There is already a fix for this problem:  https://github.com/coreboot/seabios/commit/01774004c7f7fdc9c1e8f1715f70d3b913f8d491

Comment 1 Klaus Heinrich Kiwi 2022-05-17 19:00:45 UTC
sync'ing with Bug #2083884

Comment 5 Yanan Fu 2022-05-27 05:40:11 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 8 Xueqiang Wei 2022-05-29 13:57:04 UTC
Tested with seabios-1.16.0-3.el9, not hit this issue.


Versoins:
Host:
kernel-5.14.0-96.el9.x86_64
qemu-kvm-7.0.0-4.el9
seavgabios-bin-1.16.0-3.el9.noarch
seabios-bin-1.16.0-3.el9.noarch
seabios-1.16.0-3.el9.x86_64

Guest:
RHEL-9.1.0


1. boot a rhel guest without enable-kvm

/usr/libexec/qemu-kvm \
     -S  \
     -name 'avocado-vt-vm1'  \
     -sandbox on  \
     -machine q35,memory-backend=mem-machine_mem \
     -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 12288 \
     -object memory-backend-ram,size=12288M,id=mem-machine_mem  \
     -smp 8,maxcpus=8,cores=4,threads=1,dies=1,sockets=2  \
     -cpu 'Skylake-Server-IBRS',ss=on,vmx=on,pdcm=on,hypervisor=on,tsc-adjust=on,clflushopt=on,umip=on,pku=on,md-clear=on,stibp=on,arch-capabilities=on,ssbd=on,xsaves=on,ibpb=on,ibrs=on,amd-stibp=on,amd-ssbd=on,rsba=on,skip-l1dfl-vmentry=on,pschange-mc-no=on,kvm_pv_unhalt=on \
     -chardev socket,server=on,path=/var/tmp/avocado_d5y2n0ic/monitor-qmpmonitor1-20220526-211317-vXJhHwYe,id=qmp_id_qmpmonitor1,wait=off  \
     -mon chardev=qmp_id_qmpmonitor1,mode=control \
     -chardev socket,server=on,path=/var/tmp/avocado_d5y2n0ic/monitor-catch_monitor-20220526-211317-vXJhHwYe,id=qmp_id_catch_monitor,wait=off  \
     -mon chardev=qmp_id_catch_monitor,mode=control \
     -device pvpanic,ioport=0x505,id=idOBPOcB \
     -chardev socket,server=on,path=/var/tmp/avocado_d5y2n0ic/serial-serial0-20220526-211317-vXJhHwYe,id=chardev_serial0,wait=off \
     -device isa-serial,id=serial0,chardev=chardev_serial0  \
     -chardev socket,id=seabioslog_id_20220526-211317-vXJhHwYe,path=/var/tmp/avocado_d5y2n0ic/seabios-20220526-211317-vXJhHwYe,server=on,wait=off \
     -device isa-debugcon,chardev=seabioslog_id_20220526-211317-vXJhHwYe,iobase=0x402 \
     -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-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/rhel910-64-virtio-scsi.qcow2.seabios,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,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:4f:30:b4:e3:27,id=idMrOEfm,netdev=id8rEnSa,bus=pcie-root-port-3,addr=0x0  \
     -netdev tap,id=id8rEnSa,vhost=on  \
     -vnc :0  \
     -rtc base=utc,clock=host,driftfix=slew  \
     -boot menu=off,order=cdn,once=c,strict=off \
     -monitor stdio \
     #-enable-kvm \


2. reset the guest

(qemu) system_reset


After step 2, guest reset successfully.

Comment 9 Xueqiang Wei 2022-05-29 14:00:04 UTC
Sorry for the misoperation, change status to ON_QA

Comment 10 Xueqiang Wei 2022-05-30 02:10:12 UTC
Can you help confirm it with CentOS? Thanks.

Comment 11 Xueqiang Wei 2022-05-30 02:46:20 UTC
Hi Gerd,

I don't hit it with a RHEL guest. Tested with seabios-1.16.0-1.el9 and seabios-1.16.0-3.el9, rhel guest all work well.

The details in Comment 8, can you help double check it? Many thanks.

Comment 12 Gerd Hoffmann 2022-05-31 04:51:31 UTC
> I don't hit it with a RHEL guest. Tested with seabios-1.16.0-1.el9 and
> seabios-1.16.0-3.el9, rhel guest all work well.

Happens with tch only (-accel tcg).

Comment 13 Xueqiang Wei 2022-05-31 07:30:43 UTC
(In reply to Gerd Hoffmann from comment #12)
> > I don't hit it with a RHEL guest. Tested with seabios-1.16.0-1.el9 and
> > seabios-1.16.0-3.el9, rhel guest all work well.
> 
> Happens with tch only (-accel tcg).


Thanks Gerd.

Retested with "-accel tcg", reproduced it with seabios-1.16.0-1.el9.

Tested with seabios-1.16.0-3.el9, not hit this issue. So set status to VERIFIED. Thanks.

Comment 15 errata-xmlrpc 2022-11-15 10:12:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (seabios bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8051


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