RE: [PATCH v1 4/5] drm/virtio: Import prime buffers from other devices as guest blobs

2024-07-20 Thread Kasireddy, Vivek
Hi Dmitry, > > +static void virtgpu_dma_buf_move_notify(struct dma_buf_attachment > *attach) > > +{ > > + struct drm_gem_object *obj = attach->importer_priv; > > + struct virtio_gpu_device *vgdev = obj->dev->dev_private; > > + struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); > > +

Re: [PATCH v1 4/5] drm/virtio: Import prime buffers from other devices as guest blobs

2024-07-18 Thread Dmitry Osipenko
On 6/24/24 09:43, Vivek Kasireddy wrote: > +static void virtgpu_dma_buf_move_notify(struct dma_buf_attachment *attach) > +{ > + struct drm_gem_object *obj = attach->importer_priv; > + struct virtio_gpu_device *vgdev = obj->dev->dev_private; > + struct virtio_gpu_object *bo = gem_to_virt

[PATCH v1 4/5] drm/virtio: Import prime buffers from other devices as guest blobs

2024-06-24 Thread Vivek Kasireddy
By importing scanout buffers from other devices, we should be able to use the virtio-gpu driver in KMS only mode. Note that we attach dynamically and register a move_notify() callback so that we can let the VMM know of any location changes associated with the backing store of the imported object by