From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: qemu-devel@nongnu.org
Cc: berrange@redhat.com, kraxel@redhat.com,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [Qemu-devel] [PATCH v3 00/26] vhost-user for input & GPU
Date: Mon, 18 Jun 2018 18:17:03 +0200 [thread overview]
Message-ID: <20180618161729.334-1-marcandre.lureau@redhat.com> (raw)
Hi,
vhost-user allows to drive a virtio device in a seperate
process. After vhost-user-net, we have seen
vhost-user-{scsi,blk,crypto} added more recently.
This series, initially proposed 2 years ago
(https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg01905.html)
contributes with vhost-user-input and vhost-user-gpu.
Additionally, to factor out common code and ease the usage, a
vhost-user-backend is introduced as an intermediary object between the
backend and the qemu device.
You may start a vhost-user-gpu with virgl rendering in a separate
process like this:
$ ./vhost-user-gpu --virgl -s vgpu.sock &
$ qemu...
-chardev socket,id=chr,path=vgpu.sock
-object vhost-user-backend,id=vug,chardev=chr
-device vhost-user-vga,vhost-user=vug
You may also specify the backend command and the arguments as part of
vhost-user-backend qemu arguments. For example, to start a
vhost-user-input backend on input device /dev/input/event19:
-object vhost-user-backend,id=vuid,cmd="vhost-user-input /dev/input/event19"
-device virtio-input-host-pci,vhost-user=vuid
The vhost-user-gpu backend requires virgl from git.
Feedback welcome,
v3: deal with most comments from rfcv2 and various improvements
- "vhost-user-backend: allow to specify binary to execute" as seperate
patch, not for inclusion since Daniel as concerned about parsing
shell strings with glib
- use dmabuf to share 2d rendering result (with intel gem only atm)
- document the vhost-user-gpu protocol
- make vhost-user-gpu-pci and vhost-user-vga seperate devices (instead
of adding vhost-user support to existing devices)
- allow to specify virgl rendering, and rendernode
- let's promote out of RFC status :)
RFCv2: (addressing some of Gerd comments digged in the archives)
- rebased, clean ups, various small fixes, update commit messages
- teach the vhost-user-backend to take a chardev
- add vhost-user-input-pci, instead of adding vhost code to virtio-input-host-pci
Marc-André Lureau (26):
chardev: avoid crash if no associated address
chardev: remove qemu_chr_fe_write_all() counter
dmabuf: add y0_top, pass it to spice
vhost-user: simplify vhost_user_init/vhost_user_cleanup
libvhost-user: exit by default on VHOST_USER_NONE
vhost-user: wrap some read/write with retry handling
qio: add qio_channel_command_new_spawn_with_pre_exec()
Add vhost-user-backend
HACK: vhost-user-backend: allow to specify binary to execute
vhost-user: split vhost_user_read()
vhost-user: add vhost_user_input_get_config()
libvhost-user: export vug_source_new()
contrib: add vhost-user-input
Add vhost-user-input-pci
vhost-user: add vhost_user_gpu_set_socket()
vhost-user: add vhost_user_gpu_get_num_capsets()
virtio: add virtio-gpu bswap helpers header
util: promote qemu_egl_rendernode_open() to libqemuutil
contrib: add vhost-user-gpu
virtio-gpu: remove unused qdev
virtio-gpu: remove unused config_size
virtio-gpu: block both 2d and 3d rendering
virtio-gpu: remove useless 'waiting' field
virtio-gpu: split virtio-gpu, introduce virtio-gpu-base
virtio-gpu: split virtio-gpu-pci & virtio-vga
hw/display: add vhost-user-vga & gpu-pci
contrib/libvhost-user/libvhost-user-glib.h | 3 +
contrib/libvhost-user/libvhost-user.h | 3 +
contrib/vhost-user-gpu/drm.h | 63 ++
contrib/vhost-user-gpu/virgl.h | 25 +
contrib/vhost-user-gpu/vugpu.h | 167 +++
hw/display/virtio-vga.h | 22 +
hw/virtio/virtio-pci.h | 27 +-
include/hw/virtio/vhost-backend.h | 6 +
include/hw/virtio/vhost-user-blk.h | 2 +-
include/hw/virtio/vhost-user-scsi.h | 2 +-
include/hw/virtio/vhost-user.h | 2 +-
include/hw/virtio/virtio-gpu-bswap.h | 48 +
include/hw/virtio/virtio-gpu.h | 90 +-
include/hw/virtio/virtio-input.h | 14 +
include/io/channel-command.h | 18 +
include/qemu/drm.h | 6 +
include/sysemu/vhost-user-backend.h | 60 ++
include/ui/console.h | 1 +
backends/cryptodev-vhost-user.c | 18 +-
backends/vhost-user.c | 320 ++++++
chardev/char-fe.c | 6 +-
chardev/char-socket.c | 8 +-
contrib/libvhost-user/libvhost-user-glib.c | 15 +-
contrib/libvhost-user/libvhost-user.c | 3 +-
contrib/vhost-user-gpu/drm.c | 189 ++++
contrib/vhost-user-gpu/main.c | 1100 ++++++++++++++++++++
contrib/vhost-user-gpu/virgl.c | 579 +++++++++++
contrib/vhost-user-input/main.c | 364 +++++++
hw/block/vhost-user-blk.c | 22 +-
hw/display/vhost-user-gpu-pci.c | 51 +
hw/display/vhost-user-gpu.c | 488 +++++++++
hw/display/vhost-user-vga.c | 52 +
hw/display/virtio-gpu-3d.c | 70 +-
hw/display/virtio-gpu-base.c | 292 ++++++
hw/display/virtio-gpu-pci.c | 39 +-
hw/display/virtio-gpu.c | 367 ++-----
hw/display/virtio-vga.c | 127 ++-
hw/input/vhost-user-input.c | 110 ++
hw/scsi/vhost-user-scsi.c | 20 +-
hw/virtio/vhost-stub.c | 2 +-
hw/virtio/vhost-user.c | 143 ++-
hw/virtio/virtio-pci.c | 20 +
io/channel-command.c | 33 +-
net/vhost-user.c | 8 +-
ui/egl-helpers.c | 51 +-
ui/spice-display.c | 3 +-
util/drm.c | 66 ++
vl.c | 4 +-
MAINTAINERS | 12 +-
Makefile | 6 +
Makefile.objs | 2 +
backends/Makefile.objs | 3 +-
configure | 35 +
contrib/vhost-user-gpu/Makefile.objs | 10 +
contrib/vhost-user-input/Makefile.objs | 1 +
docs/interop/vhost-user-gpu.txt | 236 +++++
docs/interop/vhost-user.txt | 15 +
hw/display/Makefile.objs | 5 +-
hw/input/Makefile.objs | 1 +
util/Makefile.objs | 1 +
60 files changed, 4871 insertions(+), 585 deletions(-)
create mode 100644 contrib/vhost-user-gpu/drm.h
create mode 100644 contrib/vhost-user-gpu/virgl.h
create mode 100644 contrib/vhost-user-gpu/vugpu.h
create mode 100644 hw/display/virtio-vga.h
create mode 100644 include/hw/virtio/virtio-gpu-bswap.h
create mode 100644 include/qemu/drm.h
create mode 100644 include/sysemu/vhost-user-backend.h
create mode 100644 backends/vhost-user.c
create mode 100644 contrib/vhost-user-gpu/drm.c
create mode 100644 contrib/vhost-user-gpu/main.c
create mode 100644 contrib/vhost-user-gpu/virgl.c
create mode 100644 contrib/vhost-user-input/main.c
create mode 100644 hw/display/vhost-user-gpu-pci.c
create mode 100644 hw/display/vhost-user-gpu.c
create mode 100644 hw/display/vhost-user-vga.c
create mode 100644 hw/display/virtio-gpu-base.c
create mode 100644 hw/input/vhost-user-input.c
create mode 100644 util/drm.c
create mode 100644 contrib/vhost-user-gpu/Makefile.objs
create mode 100644 contrib/vhost-user-input/Makefile.objs
create mode 100644 docs/interop/vhost-user-gpu.txt
--
2.18.0.rc1
next reply other threads:[~2018-06-18 16:17 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-18 16:17 Marc-André Lureau [this message]
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 01/26] chardev: avoid crash if no associated address Marc-André Lureau
2018-06-19 12:01 ` Daniel P. Berrangé
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 02/26] chardev: remove qemu_chr_fe_write_all() counter Marc-André Lureau
2018-06-20 13:53 ` Paolo Bonzini
2018-06-20 14:03 ` Peter Maydell
2018-06-20 14:36 ` Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 03/26] dmabuf: add y0_top, pass it to spice Marc-André Lureau
2018-06-19 6:21 ` Gerd Hoffmann
2018-06-19 9:05 ` Marc-André Lureau
2018-06-19 10:21 ` Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 04/26] vhost-user: simplify vhost_user_init/vhost_user_cleanup Marc-André Lureau
2018-06-21 12:33 ` Tiwei Bie
2018-06-21 12:48 ` Marc-André Lureau
2018-06-21 13:27 ` Tiwei Bie
2018-06-26 12:24 ` Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 05/26] libvhost-user: exit by default on VHOST_USER_NONE Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 06/26] vhost-user: wrap some read/write with retry handling Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 07/26] qio: add qio_channel_command_new_spawn_with_pre_exec() Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 08/26] Add vhost-user-backend Marc-André Lureau
2018-06-20 14:31 ` Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 09/26] HACK: vhost-user-backend: allow to specify binary to execute Marc-André Lureau
2018-06-19 6:19 ` Gerd Hoffmann
2018-06-19 9:07 ` Daniel P. Berrangé
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 10/26] vhost-user: split vhost_user_read() Marc-André Lureau
2018-06-19 6:23 ` Gerd Hoffmann
2018-06-19 9:01 ` Marc-André Lureau
2018-06-19 11:20 ` Gerd Hoffmann
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 11/26] vhost-user: add vhost_user_input_get_config() Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 12/26] libvhost-user: export vug_source_new() Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 13/26] contrib: add vhost-user-input Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 14/26] Add vhost-user-input-pci Marc-André Lureau
2018-06-19 6:31 ` Gerd Hoffmann
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 15/26] vhost-user: add vhost_user_gpu_set_socket() Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 16/26] vhost-user: add vhost_user_gpu_get_num_capsets() Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 17/26] virtio: add virtio-gpu bswap helpers header Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 18/26] util: promote qemu_egl_rendernode_open() to libqemuutil Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 19/26] contrib: add vhost-user-gpu Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 20/26] virtio-gpu: remove unused qdev Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 21/26] virtio-gpu: remove unused config_size Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 22/26] virtio-gpu: block both 2d and 3d rendering Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 23/26] virtio-gpu: remove useless 'waiting' field Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 24/26] virtio-gpu: split virtio-gpu, introduce virtio-gpu-base Marc-André Lureau
2018-06-19 6:43 ` Gerd Hoffmann
2018-06-20 16:04 ` Marc-André Lureau
2018-06-21 6:05 ` Gerd Hoffmann
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 25/26] virtio-gpu: split virtio-gpu-pci & virtio-vga Marc-André Lureau
2018-06-20 16:59 ` Marc-André Lureau
2018-06-18 16:17 ` [Qemu-devel] [PATCH v3 26/26] hw/display: add vhost-user-vga & gpu-pci Marc-André Lureau
2018-06-19 6:54 ` Gerd Hoffmann
2018-06-19 8:58 ` Marc-André Lureau
2018-06-18 18:50 ` [Qemu-devel] [PATCH v3 00/26] vhost-user for input & GPU no-reply
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=20180618161729.334-1-marcandre.lureau@redhat.com \
--to=marcandre.lureau@redhat.com \
--cc=berrange@redhat.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).