Linux virtualization list
 help / color / mirror / Atom feed
* [PATCH 0/3] virtgpu: check if P2P is possiable or not
@ 2024-12-07 10:50 Julia Zhang
  2024-12-07 10:50 ` [PATCH 1/3] xen:get p2pdma_distance Julia Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Julia Zhang @ 2024-12-07 10:50 UTC (permalink / raw)
  To: David Airlie, Gerd Hoffmann, Gurchetan Singh, Chia-I Wu,
	dri-devel, virtualization, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, xen-devel
  Cc: Alex Deucher, Christian König, Daniel Vetter, Chen Jiqian,
	Huang Rui, Penny Zheng, Zhu Lingshan, Anthony PERARD,
	Roger Pau Monné, Jan Beulich, Paul Durrant, Julia Zhang

To implement dGPU prime feature, virtgpu needs to import/export buffer
between virtio iGPU and passthrough dGPU. Before that, virtgpu should
check if P2P is possible or not. But calling function pci_p2pdma_distance
in guest VM will only get virtual p2pdma_distance instead of real physical
p2pdma_distance.
 
So this series introduce an implementation of virtgpu device_attach
callback to get p2pdma_distance. And also adds a new virtgpu command to
pass PCI notations from guest to host and a new xen privcmd to get physical
p2pdma_distance according to the PCI notations in host.

Julia Zhang (3):
  xen:get p2pdma_distance
  virtgpu: get p2pdma_distance
  drm/virtio: Implement device_attach

 drivers/gpu/drm/virtio/virtgpu_drv.h   | 17 ++++++++
 drivers/gpu/drm/virtio/virtgpu_prime.c | 59 +++++++++++++++++++++++++-
 drivers/gpu/drm/virtio/virtgpu_vq.c    | 53 +++++++++++++++++++++++
 drivers/xen/privcmd.c                  | 42 ++++++++++++++++++
 include/uapi/linux/virtio_gpu.h        | 19 +++++++++
 include/uapi/xen/privcmd.h             | 12 ++++++
 6 files changed, 201 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-12-13  9:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-07 10:50 [PATCH 0/3] virtgpu: check if P2P is possiable or not Julia Zhang
2024-12-07 10:50 ` [PATCH 1/3] xen:get p2pdma_distance Julia Zhang
2024-12-07 10:50 ` [PATCH 2/3] virtgpu: get p2pdma_distance Julia Zhang
2024-12-07 10:50 ` [PATCH 3/3] drm/virtio: Implement device_attach Julia Zhang
2024-12-09 12:28   ` Christian König
2024-12-12  7:43 ` [PATCH 0/3] virtgpu: check if P2P is possiable or not Juergen Gross
2024-12-13  9:58   ` Zhang, Julia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox