Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1655304

Summary: Dracut includes kvmgt.ko in the initrd but not its dependencies
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: dracutAssignee: dracut-maint-list
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: dracut-maint-list, harald, jonathan, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-10 23:19:57 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:

Description Hans de Goede 2018-12-02 15:21:00 UTC
Starting with kernel 4.19, i915.ko has:

[root@localhost ~]# modinfo i915 | grep pre\:
softdep:        pre: kvmgt

dracut correctly picks this up, including kvmgt.ko in the initrd (checked with lsinitrd).

But kvmgt.ko has:

[root@localhost ~]# modinfo kvmgt | grep dep
depends:        vfio,mdev,kvm

And dracut does not include any of these kernel modules into the initrd, causing these errors in dmesg:

[    5.395162] kvmgt: Unknown symbol gfn_to_memslot (err -2)
[    5.395184] kvmgt: Unknown symbol vfio_pin_pages (err -2)
[    5.395196] kvmgt: Unknown symbol vfio_info_cap_shift (err -2)
[    5.395208] kvmgt: Unknown symbol vfio_set_irqs_validate_and_prepare (err -2)
[    5.395220] kvmgt: Unknown symbol vfio_device_put (err -2)
[    5.395228] kvmgt: Unknown symbol gfn_to_pfn (err -2)
[    5.395238] kvmgt: Unknown symbol mdev_from_dev (err -2)
[    5.395254] kvmgt: Unknown symbol kvm_put_kvm (err -2)
[    5.395266] kvmgt: Unknown symbol kvm_write_guest (err -2)
etc.

Since this is a softdep this does not really cause much of a problem, but I expect this to actually be an issue if a user actually want to use the hw virt support of their Intel GPU.

It looks to me as if dracut does not include the deps of softdeps ?

Note as a workaround the errors can be silenced by using --omit-drivers kvmgt.

Comment 1 Hans de Goede 2018-12-03 15:31:34 UTC
Upstream bug for this:

https://github.com/dracutdevs/dracut/issues/491

Comment 3 Fedora Update System 2018-12-04 10:40:31 UTC
dracut-049-25.git20181204.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1f0c069e85

Comment 4 Fedora Update System 2018-12-05 03:54:04 UTC
dracut-049-25.git20181204.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-1f0c069e85

Comment 5 Randy Barlow 2018-12-10 23:19:57 UTC
An update associated with this bug has been pushed to stable.