OSDN Git Service

backends/vhost-user: remove the ioeventfd check
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 30 Jan 2023 12:47:28 +0000 (12:47 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 2 Mar 2023 08:10:47 +0000 (03:10 -0500)
commite1a0e635c91e4e1255c16a178afde30aa32b7efe
tree6c6d740c0598381762df9127927cb9df93e7c1d7
parentcd69d47cddabc9adf4562ac968437bb547f46630
backends/vhost-user: remove the ioeventfd check

While ioeventfds are needed for good performance with KVM guests it
should not be a gating requirement. We can run vhost-user backends using
simulated ioeventfds or inband signalling.

With this change I can run:

  $QEMU $OPTS \
    -display gtk,gl=on \
    -device vhost-user-gpu-pci,chardev=vhgpu \
    -chardev socket,id=vhgpu,path=vhgpu.sock

with:

  ./contrib/vhost-user-gpu/vhost-user-gpu \
    -s vhgpu.sock \
    -v

and at least see things start-up - although the display gets rotated by
180 degrees. Once lightdm takes over we never make it to the login
prompt and just get a blank screen.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20221202132231.1048669-1-alex.bennee@linaro.org>

Message-Id: <20230130124728.175610-1-alex.bennee@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
backends/vhost-user.c