The udev rules installed as /lib/udev/rules.d/65-kvm.rules by app-emulation/qemu cover only /dev/vhost-net but they should also cover /dev/vhost-vsock. Example additional rule line: > KERNEL=="vhost-vsock", GROUP="kvm", MODE="0660", OPTIONS+="static_node=vhost-vsock"
Can you file an upstream bug report? Or perhaps just send a patch?https://wiki.qemu.org/Contribute/SubmitAPatch
That's a Gentoo-provided file, can't find it in upstream QEMU repo.
Ah, good point! Do you want to write an ebuild patch yourself? I would apply it with `git am`.
Longer term alternative is to explore why we don't have these rules from systemd-udev in Gentoo: git/systemd $ git grep vhost- | cat rules.d/50-udev-default.rules.in:KERNEL=="vhost-vsock", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=vhost-vsock" rules.d/50-udev-default.rules.in:KERNEL=="vhost-net", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=vhost-net"
vhost-vsock was added upstream about a month ago: https://github.com/systemd/systemd/commit/c78939d5652aaee2731956282c1c17aa9f7f710f#diff-d6ba9ac8bf0dada369a376b31b08d238ac4f9535c5f996a0dfb3b9a0fd4587a6
Created attachment 688782 [details, diff] Patch in git-format-patch format
(In reply to Sergei Trofimovich from comment #3) > Ah, good point! Do you want to write an ebuild patch yourself? I would apply > it with `git am`. Added a patch in git-format-patch format generated against the ebuild git tree. > Longer term alternative is to explore why we don't have these rules from > systemd-udev in Gentoo Yes, we probably should strive to have the smallest number of udev rule differences from the upstream that's reasonably possible to avoid extra maintainer effort.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=470064cb7fb8c6cda0b5f2ea40fcb6542faf86de commit 470064cb7fb8c6cda0b5f2ea40fcb6542faf86de Author: Maciej S. Szmigiero <mail@maciej.szmigiero.name> AuthorDate: 2021-02-28 22:58:09 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-28 23:24:08 +0000 app-emulation/qemu: Add /dev/vhost-vsock to udev rules The installed udev rules should also cover /dev/vhost-vsock just as they currently cover /dev/vhost-net. The upstream systemd rules will include vhost-vsock in systemd v248. Closes: https://bugs.gentoo.org/773286 Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> app-emulation/qemu/files/65-kvm.rules-r2 | 3 + app-emulation/qemu/qemu-5.2.0-r3.ebuild | 860 +++++++++++++++++++++++++++++++ app-emulation/qemu/qemu-9999.ebuild | 2 +- 3 files changed, 864 insertions(+), 1 deletion(-)
Pulled your change with slight modification: instead of changing ebuild inplace I pulled changed to new 5.2.0-r3 ebuild (and existing -9999 one). Thank you!
Thanks Sergei!