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.
Description of problem:
ramfb='off' translate to wrong qemu option
Version-Release number of selected component (if applicable):
libvirt-7.9.0-1.el9.x86_64
qemu-kvm-6.1.0-6.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Try to boot a intel vGPU VM with libvirt xml:
...
<hostdev mode='subsystem' type='mdev' managed='no' model='vfio-pci' display='on' ramfb='off'>
<source>
<address uuid='0328361c-ec35-4eb0-940f-0782bc5a1aa4'/>
</source>
<alias name='ua-0328361c-ec35-4eb0-940f-0782bc5a1aa4'/>
<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</hostdev>
...
2.
3.
Actual results:
Fail to boot VM and libvirt report error:
# virsh start rhel85_i915-GVTg_V5_4
error: Failed to start domain 'rhel85_i915-GVTg_V5_4'
error: internal error: qemu unexpectedly closed the monitor: 2021-11-18T05:22:32.739586Z qemu-kvm: -device vfio-pci,id=ua-0328361c-ec35-4eb0-940f-0782bc5a1aa4,sysfsdev=/sys/bus/mdev/devices/0328361c-ec35-4eb0-940f-0782bc5a1aa4,display=on,ramfb=off,bus=pci.7,addr=0x0: Property 'vfio-pci.ramfb' not found
Expected results:
vGPU VM can boot normally
Additional info:
This is a regression of libvirt-7.9.0-1.el9.x86_64, no such issue happen on libvirt-7.6.0-6.module+el8.5.0+13051+7ddbe958.x86_64
Fixed upstream by:
commit 84d1347dbe09743eec6d7b05c130923407c5e20f
Author: Peter Krempa <pkrempa>
Date: Thu Nov 18 09:25:29 2021 +0100
qemuxml2argvtest: Add device with 'ramfb=off' to 'hostdev-mdev-display-ramfb'
Add a test case where 'ramfb' is explicitly disabled for a mediated
device to prevent regressing again.
Signed-off-by: Peter Krempa <pkrempa>
Reviewed-by: Ján Tomko <jtomko>
commit c3bf7f5e620c6fe839df96e763b9aac2b110a369
Author: Peter Krempa <pkrempa>
Date: Thu Nov 18 09:23:09 2021 +0100
qemuBuildHostdevMediatedDevProps: Format 'ramfb' only when enabled
Before commit 73c352ab8c97d3 which converted the hostdev commandline
formatter to JSON the 'ramfb' property was formatted only if it was
enabled.
The main reason for that is that enabling 'ramfb' switches the device
model to 'vfio-pci-nohotplug' which actually has the property, while
'vfio-pci' (used when 'ramfb' is disabled or absent) doesn't have it.
Restore the logic to format 'ramfb' only when it's enabled and add a
comment that it's deliberate.
Fixes: 73c352ab8c97d3
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2024435
Signed-off-by: Peter Krempa <pkrempa>
Reviewed-by: Ján Tomko <jtomko>
v7.9.0-186-g84d1347dbe
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 (new packages: libvirt), 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:2390
Description of problem: ramfb='off' translate to wrong qemu option Version-Release number of selected component (if applicable): libvirt-7.9.0-1.el9.x86_64 qemu-kvm-6.1.0-6.el9.x86_64 How reproducible: 100% Steps to Reproduce: 1.Try to boot a intel vGPU VM with libvirt xml: ... <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-pci' display='on' ramfb='off'> <source> <address uuid='0328361c-ec35-4eb0-940f-0782bc5a1aa4'/> </source> <alias name='ua-0328361c-ec35-4eb0-940f-0782bc5a1aa4'/> <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> </hostdev> ... 2. 3. Actual results: Fail to boot VM and libvirt report error: # virsh start rhel85_i915-GVTg_V5_4 error: Failed to start domain 'rhel85_i915-GVTg_V5_4' error: internal error: qemu unexpectedly closed the monitor: 2021-11-18T05:22:32.739586Z qemu-kvm: -device vfio-pci,id=ua-0328361c-ec35-4eb0-940f-0782bc5a1aa4,sysfsdev=/sys/bus/mdev/devices/0328361c-ec35-4eb0-940f-0782bc5a1aa4,display=on,ramfb=off,bus=pci.7,addr=0x0: Property 'vfio-pci.ramfb' not found Expected results: vGPU VM can boot normally Additional info: This is a regression of libvirt-7.9.0-1.el9.x86_64, no such issue happen on libvirt-7.6.0-6.module+el8.5.0+13051+7ddbe958.x86_64