Re: [PATCH 0/3] virtgpu: check if P2P is possiable or not

2024-12-13 Thread Zhang, Julia
On 2024/12/12 15:43, Juergen Gross wrote: > On 07.12.24 11:50, Julia Zhang wrote: >> 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_p2pd

Re: [PATCH 0/3] virtgpu: check if P2P is possiable or not

2024-12-11 Thread Juergen Gross
On 07.12.24 11:50, Julia Zhang wrote: 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_dis

[PATCH 0/3] virtgpu: check if P2P is possiable or not

2024-12-07 Thread 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_di