[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 5/9] contrib: add vhost-user-gpu
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PULL 5/9] contrib: add vhost-user-gpu |
Date: |
Thu, 30 May 2019 12:14:26 +0100 |
On Wed, 29 May 2019 at 05:42, Gerd Hoffmann <address@hidden> wrote:
>
> From: Marc-André Lureau <address@hidden>
>
> Add a vhost-user gpu backend, based on virtio-gpu/3d device. It is
> associated with a vhost-user-gpu device.
>
> Various TODO and nice to have items:
> - multi-head support
> - crash & resume handling
> - accelerated rendering/display that avoids the waiting round trips
> - edid support
>
> Signed-off-by: Marc-André Lureau <address@hidden>
> Message-id: address@hidden
> Signed-off-by: Gerd Hoffmann <address@hidden>
Hi; Coverity spotted an issue with this patch (CID 1401705):
> +int
> +main(int argc, char *argv[])
> +{
> + if (opt_socket_path) {
> + int lsock = unix_listen(opt_socket_path, &error_fatal);
> + fd = accept(lsock, NULL, NULL);
Here we call unix_listen(), which can fail, but we don't check
for the error, so we can pass -1 to accept() as an fd, which is bogus.
> + close(lsock);
> + } else {
> + fd = opt_fdnum;
> + }
thanks
-- PMM
- [Qemu-devel] [PULL 0/9] Vga 20190529 patches, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 4/9] util: compile drm.o on posix, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 3/9] virtio-gpu: add a pixman helper header, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 2/9] virtio-gpu: add bswap helpers header, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 1/9] vhost-user: add vhost_user_gpu_set_socket(), Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 6/9] spice-app: fix running when !CONFIG_OPENGL, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 8/9] virtio-gpu: split virtio-gpu-pci & virtio-vga, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 9/9] hw/display: add vhost-user-vga & gpu-pci, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 5/9] contrib: add vhost-user-gpu, Gerd Hoffmann, 2019/05/29
- Re: [Qemu-devel] [PULL 5/9] contrib: add vhost-user-gpu,
Peter Maydell <=
- [Qemu-devel] [PULL 7/9] virtio-gpu: split virtio-gpu, introduce virtio-gpu-base, Gerd Hoffmann, 2019/05/29
- Re: [Qemu-devel] [PULL 0/9] Vga 20190529 patches, Peter Maydell, 2019/05/30