[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QEMU PATCH v4 10/13] virtio-gpu: Resource UUID
 
- To: Akihiko Odaki <akihiko.odaki@xxxxxxxxxx>
 
- From: Albert Esteve <aesteve@xxxxxxxxxx>
 
- Date: Wed, 13 Sep 2023 13:34:34 +0200
 
- Cc: Huang Rui <ray.huang@xxxxxxx>, Gerd Hoffmann <kraxel@xxxxxxxxxx>, 	"Michael S . Tsirkin" <mst@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, 	Anthony PERARD <anthony.perard@xxxxxxxxxx>, 	Antonio Caggiano <antonio.caggiano@xxxxxxxxxxxxx>, 	"Dr . David Alan Gilbert" <dgilbert@xxxxxxxxxx>, Robert Beckett <bob.beckett@xxxxxxxxxxxxx>, 	Dmitry Osipenko <dmitry.osipenko@xxxxxxxxxxxxx>, Alex Bennée <alex.bennee@xxxxxxxxxx>, 	"qemu-devel@xxxxxxxxxx" <qemu-devel@xxxxxxxxxx>, 	"xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, 	Gurchetan Singh <gurchetansingh@xxxxxxxxxxxx>, "ernunes@xxxxxxxxxx" <ernunes@xxxxxxxxxx>, 	Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>, 	Alyssa Ross <hi@xxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, 	"Deucher, Alexander" <Alexander.Deucher@xxxxxxx>, "Koenig, Christian" <Christian.Koenig@xxxxxxx>, 	"Ragiadakou, Xenia" <Xenia.Ragiadakou@xxxxxxx>, 	"Pelloux-Prayer, Pierre-Eric" <Pierre-eric.Pelloux-prayer@xxxxxxx>, 	"Huang, Honglei1" <Honglei1.Huang@xxxxxxx>, "Zhang, Julia" <Julia.Zhang@xxxxxxx>, 	"Chen, Jiqian" <Jiqian.Chen@xxxxxxx>
 
- Delivery-date: Wed, 13 Sep 2023 11:35:04 +0000
 
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
 
 
 
 
 On 2023/09/13 16:55, Albert Esteve wrote: 
> Hi Antonio, 
>  
> If I'm not mistaken, this patch is related with:  
> https://lists.gnu.org/archive/html/qemu-devel/2023-09/msg01853.html  
> <https://lists.gnu.org/archive/html/qemu-devel/2023-09/msg01853.html> 
> IMHO, ideally, virtio-gpu and vhost-user-gpu both, would use the  
> infrastructure from the patch I linked to store the 
> virtio objects, so that they can be later shared with other devices. 
 
I don't think such sharing is possible because the resources are  
identified by IDs that are local to the device. That also complicates  
migration. 
 
Regards, 
Akihiko Odaki 
  Hi Akihiko, 
 
 As far as I understand, the feature to export dma-bufs from the virtgpu was introduced as part of the virtio cross-device sharing proposal [1]. Thus, it shall be posible. When virtgpu ASSING_UUID, it exports and identifies the dmabuf resource, so that when the dmabuf gets shared inside the guest (e.g., with virtio-video), we can use the assigned UUID to find the dmabuf in the host (using the patch that I linked above), and import it. 
 
  
 
    
     |