Support getting p2pdma_distance
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | virtio-gpu: set hostaddr for virtio iGPUhw/ hw/ hw/ +2 more | +14 | 0 replies | |
| 2/3 | pci: introduce a function to get PCIDevicehw/ include/ | +24 | 0 replies | |
| 3/3 | virtio-gpu: add a new command to get p2pdma_distancehw/ hw/ include/ +2 more | +87 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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