Re: [Qemu-devel] [PATCH v3 26/26] hw/display: add vhost-user-vga & gpu-pci

2018-06-19 Thread Marc-André Lureau
Hi On Tue, Jun 19, 2018 at 8:54 AM, Gerd Hoffmann wrote: > Hi, > >> +VHOST_USER_GPU_SCANOUT, >> +VHOST_USER_GPU_UPDATE, >> +VHOST_USER_GPU_DMABUF_SCANOUT, >> +VHOST_USER_GPU_DMABUF_UPDATE, > > Hmm, still two command versions. > > I still think there should be no separate 2d code

Re: [Qemu-devel] [PATCH v3 26/26] hw/display: add vhost-user-vga & gpu-pci

2018-06-18 Thread Gerd Hoffmann
Hi, > +VHOST_USER_GPU_SCANOUT, > +VHOST_USER_GPU_UPDATE, > +VHOST_USER_GPU_DMABUF_SCANOUT, > +VHOST_USER_GPU_DMABUF_UPDATE, Hmm, still two command versions. I still think there should be no separate 2d code path. Just put the 2d display updates into a texture, or into a drm bu

[Qemu-devel] [PATCH v3 26/26] hw/display: add vhost-user-vga & gpu-pci

2018-06-18 Thread Marc-André Lureau
Add new virtio-gpu devices with a "vhost-user" property. Tthe associated vhost-user backend is used to handle the virtio rings and provide rendering results thanks to the vhost-user-gpu protocol. Example usage: -object vhost-user-backend,id=vug,cmd="./vhost-user-gpu" -device vhost-user-vga,vhost-u