Skip to content

Support getting p2pdma_distance

Julia Zhang qemu-devel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio-gpu: set hostaddr for virtio iGPUhw/display/virtio-gpu.c hw/xen/xen_pt.c hw/xen/xen_pt.h +2 more+14 -60 replies
2/3pci: introduce a function to get PCIDevicehw/pci/pci.c include/hw/pci/pci.h+24 -00 replies
3/3virtio-gpu: add a new command to get p2pdma_distancehw/display/virtio-gpu-virgl.c hw/i386/xen/xen-hvm.c include/hw/virtio/virtio-gpu-bswap.h +2 more+87 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Support getting p2pdma_distance

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(-)
Signature · 1 line
2.34.1