Bug 2150210 - qemu: Missing dependencies between devices
Summary: qemu: Missing dependencies between devices
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2149022
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-02 05:13 UTC by Miroslav Rezanina
Modified: 2024-05-21 14:22 UTC (History)
16 users (show)

Fixed In Version:
Clone Of: 2149022
Environment:
Last Closed: 2024-05-21 14:22:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miroslav Rezanina 2022-12-02 05:13:25 UTC
+++ This bug was initially created as a clone of Bug #2149022 +++

In a fresh RHEL 9 host[1] with the following QEMU packages installed

  $ rpm -qa | grep qemu-kvm
  qemu-kvm-common-7.1.0-4.el9.x86_64
  qemu-kvm-core-7.1.0-4.el9.x86_64
  qemu-kvm-device-display-virtio-gpu-pci-7.1.0-4.el9.x86_64

attempts to use virtio-gpu-pci immediately result in a segfault

  $ /usr/libexec/qemu-kvm -nodefaults -display none -accel tcg -M q35 -cpu max -device virtio-gpu-pci
  qemu-kvm: -device virtio-gpu-pci: missing object type 'virtio-gpu-device'
  Aborted (core dumped)

Manually installing the qemu-kvm-device-display-virtio-gpu package
makes the issue go away, but since virtio-gpu is apparently needed
for virtio-gpu-pci to work, this dependency should be made explicit
in the spec file.

I have only tested this for virtio-gpu-pci, but I think it's safe to
assume that most (if not all) virtio-*-pci behave the same way.


[1] Actually a CentOS Stream 9 container, but it shouldn't make any
    difference for the purpose of this bug report.

--- Additional comment from Daniel Berrangé on 2022-11-30 16:11:29 UTC ---

> Manually installing the qemu-kvm-device-display-virtio-gpu package
> makes the issue go away, but since virtio-gpu is apparently needed
> for virtio-gpu-pci to work, this dependency should be made explicit
> in the spec file.

Right, instantiating a 'virtio-gpu-pci' device has a hard dependency on instantiating a 'virtio-gpu' device

So we need a 'Requires: qemu-kvm-device-display-virtio-gpu' to be present in the 'qemu-kvm-device-display-virtio-gpu-pci' sub-RPM

Likewise for the -gl / -gl-pci variants.

Most modules don't need such RPM dependencies since they are self-contained.  The virtio device modules are special because the virtio transport is pluggable, so the -pci device is an add-on to the generic device.

--- Additional comment from Miroslav Rezanina on 2022-11-30 20:06:13 UTC ---

(In reply to Daniel Berrangé from comment #1)
> > Manually installing the qemu-kvm-device-display-virtio-gpu package
> > makes the issue go away, but since virtio-gpu is apparently needed
> > for virtio-gpu-pci to work, this dependency should be made explicit
> > in the spec file.
> 
> Right, instantiating a 'virtio-gpu-pci' device has a hard dependency on
> instantiating a 'virtio-gpu' device
> 
> So we need a 'Requires: qemu-kvm-device-display-virtio-gpu' to be present in
> the 'qemu-kvm-device-display-virtio-gpu-pci' sub-RPM
> 
> Likewise for the -gl / -gl-pci variants.
> 
> Most modules don't need such RPM dependencies since they are self-contained.
> The virtio device modules are special because the virtio transport is
> pluggable, so the -pci device is an add-on to the generic device.

Thanks for clarification, Daniel. I miss-read Andrea's report and not realize
the problem is between modules subpackages and not in core subpackage. 

I'll prepare fix for this.

Comment 1 Ben Cotton 2023-02-07 15:00:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Aoife Moloney 2024-05-07 15:53:21 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Aoife Moloney 2024-05-21 14:22:36 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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