From: Benjamin Berg <benjamin@sipsolutions.net>
To: linux-um@lists.infradead.org
Cc: Benjamin Berg <benjamin.berg@intel.com>
Subject: [PATCH 0/4] Enable virtio-fs and virtio-snd in UML
Date: Sun, 3 Nov 2024 22:28:50 +0100 [thread overview]
Message-ID: <20241103212854.1436046-1-benjamin@sipsolutions.net> (raw)
From: Benjamin Berg <benjamin.berg@intel.com>
With these changes, both virtio-fs and virtio-snd seem to work fine. The
feature to query the number of vqs is not really needed, but I already
had the code.
You can for example boot a machine that has both by executing something
like the following:
$ virtiofsd --sandbox none --socket-path=/tmp/vfsd.sock \
--shared-dir / --announce-submounts \
--tag vfs0
$ vhost-device-sound --socket /tmp/vsnd.sock --backend pipewire
And then simply launching a UML VM directly from /
$ ./linux mem=256M init=/bin/sh \
virtio_uml.device=/tmp/vfsd.sock:26 \
virtio_uml.device=/tmp/vsnd.sock:25 \
root=vfs0 rootfstype=virtiofs
If you want to do a quick sound check, you could e.g. run the following
commands. The mount just avoids alsa configuration from the host to be
picked up, which might have configuration to use pipewire by default.
# mount -t tmpfs none /etc
# arecord | aplay
For me, this works fine on F40 (virtiofsd is installed in /usr/libexec)
Benjamin
Benjamin Berg (4):
um: virtio_uml: send SET_MEM_TABLE message with the exact size
um: virtio_uml: use smaller virtqueue sizes for VIRTIO_ID_SOUND
um: virtio_uml: fix call_fd IRQ allocation
um: virtio_uml: query the number of vqs if supported
arch/um/drivers/vhost_user.h | 4 ++-
arch/um/drivers/virtio_uml.c | 53 ++++++++++++++++++++++++++++++------
2 files changed, 48 insertions(+), 9 deletions(-)
--
2.47.0
next reply other threads:[~2024-11-03 21:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-03 21:28 Benjamin Berg [this message]
2024-11-03 21:28 ` [PATCH 1/4] um: virtio_uml: send SET_MEM_TABLE message with the exact size Benjamin Berg
2024-11-03 21:28 ` [PATCH 2/4] um: virtio_uml: use smaller virtqueue sizes for VIRTIO_ID_SOUND Benjamin Berg
2024-11-07 17:01 ` Johannes Berg
2024-11-03 21:28 ` [PATCH 3/4] um: virtio_uml: fix call_fd IRQ allocation Benjamin Berg
2024-11-03 21:28 ` [PATCH 4/4] um: virtio_uml: query the number of vqs if supported Benjamin Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241103212854.1436046-1-benjamin@sipsolutions.net \
--to=benjamin@sipsolutions.net \
--cc=benjamin.berg@intel.com \
--cc=linux-um@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox