Re: [PATCH 1/1] virtio-gpu: CONTEXT_INIT feature

2021-09-28 Thread Gerd Hoffmann
Hi, > > This needs a config option, simliar to the other features. It is a > > guest-visible change so we must be able to turn it off for live > > migration compatibility reasons. We also need a compat property to > > turn it off by default for 6.1 + older machine types. > > Could you give me

Re: [PATCH 1/1] virtio-gpu: CONTEXT_INIT feature

2021-09-28 Thread Antonio Caggiano
On 28/09/21 07:13, Gerd Hoffmann wrote: @@ -212,6 +212,8 @@ virtio_gpu_base_get_features(VirtIODevice *vdev, uint64_t features, features |= (1 << VIRTIO_GPU_F_RESOURCE_BLOB); } +features |= (1 << VIRTIO_GPU_F_CONTEXT_INIT); This needs a config option, simliar to the othe

Re: [PATCH 1/1] virtio-gpu: CONTEXT_INIT feature

2021-09-27 Thread Gerd Hoffmann
> @@ -212,6 +212,8 @@ virtio_gpu_base_get_features(VirtIODevice *vdev, uint64_t > features, > features |= (1 << VIRTIO_GPU_F_RESOURCE_BLOB); > } > > +features |= (1 << VIRTIO_GPU_F_CONTEXT_INIT); This needs a config option, simliar to the other features. It is a guest-visible

[PATCH 1/1] virtio-gpu: CONTEXT_INIT feature

2021-09-27 Thread Antonio Caggiano
Create virgl renderer context with flags using context_id when valid. Signed-off-by: Antonio Caggiano --- hw/display/virtio-gpu-base.c| 2 ++ hw/display/virtio-gpu-virgl.c | 10 -- include/hw/virtio/virtio-gpu-bswap.h| 2 +- include/standard-header