qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Support getting p2pdma_distance
@ 2024-12-07 10:55 Julia Zhang
  2024-12-07 10:55 ` [PATCH 1/3] virtio-gpu: set hostaddr for virtio iGPU Julia Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Julia Zhang @ 2024-12-07 10:55 UTC (permalink / raw)
  To: Stefano Stabellini, Anthony PERARD, Paul Durrant,
	Edgar E . Iglesias, Michael S . Tsirkin, Marcel Apfelbaum,
	xen-devel
  Cc: Alex Deucher, Christian König, Xenia Ragiadakou, Julia Zhang,
	Chen Jiqian, Huang Rui, Penny Zheng, Zhu Lingshan,
	Roger Pau Monné, Jan Beulich, Juergen Gross,
	Oleksandr Tyshchenko, qemu-devel

To implement dGPU prime feature, virtgpu needs to import/export buffer
between virtio iGPU and passthrough dGPU. Before that, virtgpu has to
checkout p2pdma_distance. But calling function pci_p2pdma_distance in guest
VM will only get virtual p2pdma_distance instead of real physical
p2pdma_distance.

This series is to support handling the new virtgpu command from the guest
VM to get the physical p2pdma_distance of two PCI devices of guest VM.

Julia Zhang (3):
  virtio-gpu: set hostaddr for virtio iGPU
  pci: introduce a function to get PCIDevice
  virtio-gpu: add a new command to calculate p2pdma_distance

 hw/display/virtio-gpu-virgl.c               | 47 +++++++++++++++++++++
 hw/display/virtio-gpu.c                     |  6 +++
 hw/i386/xen/xen-hvm.c                       |  6 +++
 hw/pci/pci.c                                | 22 ++++++++++
 hw/xen/xen_pt.c                             | 10 ++---
 hw/xen/xen_pt.h                             |  1 -
 include/hw/pci/pci.h                        |  2 +
 include/hw/pci/pci_device.h                 |  1 +
 include/hw/virtio/virtio-gpu-bswap.h        | 12 ++++++
 include/hw/virtio/virtio-gpu.h              |  2 +
 include/hw/xen/xen.h                        |  3 ++
 include/standard-headers/linux/virtio_gpu.h | 19 +++++++++
 12 files changed, 125 insertions(+), 6 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-01-08 14:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-07 10:55 [PATCH 0/3] Support getting p2pdma_distance Julia Zhang
2024-12-07 10:55 ` [PATCH 1/3] virtio-gpu: set hostaddr for virtio iGPU Julia Zhang
2024-12-07 10:55 ` [PATCH 2/3] pci: introduce a function to get PCIDevice Julia Zhang
2024-12-07 10:55 ` [PATCH 3/3] virtio-gpu: add a new command to get p2pdma_distance Julia Zhang
2025-01-08 14:14   ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).