Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79152 - [libvirt] add support for mediated devices with mdevctl utility

Attached to Project: Arch Linux
Opened by Maik Broemme (mbroemme) - Wednesday, 19 July 2023, 23:11 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 19 July 2023, 23:21 GMT
Task Type Feature Request
Category Packages: Extra
Status Assigned
Assigned To Sven-Hendrik Haase (Svenstaro)
freswa (frederik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:
Certain virsh commands libvirt depend on missing mdevctl command.

Additional info:
* package version(s): libvirt 1:9.5.0-1
* config and/or log files etc: Jul 20 00:59:39 localhost.localdomain libvirtd[1094]: Cannot find 'mdevctl' in path: No such file or directory

Steps to reproduce:
1. Prepare an XML file with a configuration of the mediated device, based on the detected GPU hardware:

cat << EOF > vgpu-1.xml
<device>
<parent>pci_0000_65_00_0</parent>
<capability type="mdev">
<type id="nvidia-257"/>
<uuid>c95c5065-5187-4de0-b1ce-9cc7f930b8ef</uuid>
</capability>
</device>
EOF

2. Execute: virsh nodedev-define vgpu-1.xml

Current result:
error: Failed to define node device from 'vgpu-1.xml'
error: Cannot find 'mdevctl' in path: No such file or directory

Expected result:
Node device 'mdev_0eefeb2d_7e36_46d2_966d_27abbb81bcb1_0000_65_00_0' defined from 'vgpu-1.xml'

Proposed solution:
There is already mdevctl package in AUR: https://aur.archlinux.org/packages/mdevctl Please move it to Extra repository and add mdevctl to optdepends in libvirt. Without it nodedev-create and nodedev-define commands from virsh are not working and handling mediated device via libvirt is impossible.
This task depends upon

Comment by Toolybird (Toolybird) - Wednesday, 19 July 2023, 23:18 GMT
The description is wrong. The commands only depend on mdevctl *iff* <capability type="mdev"> is used. They otherwise work fine.

Edit: to clarify, mdevctl is listed as an optional utility in the libvirt sources. There is nothing to do on the libvirt packaging side. Therefore this feature request is essentially a request to package up mdevctl and upload it to the official repos.

Loading...