[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_soc
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket() |
Date: |
Fri, 26 Apr 2019 14:15:58 +0200 |
Hi
On Fri, Apr 26, 2019 at 2:06 PM Gerd Hoffmann <address@hidden> wrote:
>
> Hi,
>
> > > > +Wire format
> > > > +===========
> > > > +
> > > > +Unless specified differently, numbers are in the machine native byte
> > > > +order.
> > > > +
> > > > +A vhost-user-gpu request consists of 2 header fields and a payload.
> > > > +
> > > > ++---------+------+---------+
> > > > +| request | size | payload |
> > > > ++---------+------+---------+
> > > > +
> > > > +Header
> > > > +------
> > > > +
> > > > +:request: ``u32``, type of the request
> > > > +
> > > > +:size: ``u32``, size of the payload
> > > > +
> > > > +A reply consists only of a payload, whose content depends on the
> > > > request.
> > >
> > > I'd suggest to use the same format for replies, only with "request"
> > > meaning "status" in replies. Allows for OK/ERROR status in replies,
> > > and having a size field in replies too should make things more robust.
> > > Also allows for an empty reply (status=ok,size=0).
> >
> >
> > That brings more questions and ambiguity imho.
>
> What questions for example?
This opens up different kind of possible replies, and error handling.
With current proposal and needs, the reply (or absence of reply) is
entirely driven by the request.
With your proposal, should all request have a reply? which makes a lot
more code synchronous, and complicates both sides unnecessarily.
>
> > Can we leave that for future protocol extensions negotiated with
> > GET/SET_PROTOCOL_FEATURES ?
>
> I don't think negotiating such a basic protocol change is a good idea.
Well, then I would rather focus on improving protocol negociation,
rather than adding unnecessary protocol changes.
Given that GET/SET_PROTOCOL_FEATURES is the first messages being sent,
why couldn't it have flags indicating new protocol revision?
--
Marc-André Lureau
- [Qemu-devel] [PATCH v6 03/11] libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config, (continued)
- [Qemu-devel] [PATCH v6 03/11] libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 04/11] contrib: add vhost-user-input, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 07/11] util: compile drm.o on Linux, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 06/11] virtio: add virtio-gpu bswap helpers header, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(), Marc-André Lureau, 2019/04/23
- Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(), Gerd Hoffmann, 2019/04/26
- Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(), Marc-André Lureau, 2019/04/26
- Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(), Gerd Hoffmann, 2019/04/26
- Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(),
Marc-André Lureau <=
- Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(), Gerd Hoffmann, 2019/04/29
- Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(), Marc-André Lureau, 2019/04/29
- Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(), Gerd Hoffmann, 2019/04/29
- Re: [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(), Michael S. Tsirkin, 2019/04/29
[Qemu-devel] [PATCH v6 08/11] contrib: add vhost-user-gpu, Marc-André Lureau, 2019/04/23
[Qemu-devel] [PATCH v6 09/11] virtio-gpu: split virtio-gpu, introduce virtio-gpu-base, Marc-André Lureau, 2019/04/23
[Qemu-devel] [PATCH v6 11/11] hw/display: add vhost-user-vga & gpu-pci, Marc-André Lureau, 2019/04/23
[Qemu-devel] [PATCH v6 10/11] virtio-gpu: split virtio-gpu-pci & virtio-vga, Marc-André Lureau, 2019/04/23