.
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
To implement passthrough dGPU prime in guest, virtio-gpu need to check
p2pdma_distance of two GPUs. This adds a new command for guest to pass
virtual pci notations of two pci devices to host and send xen privcmd to
calculate physical p2pdma_distance.
Signed-off-by: Julia Zhang
---
hw/display
Introduce a helper function to get PCIDevice from qdev pci notation.
Signed-off-by: Julia Zhang
---
hw/pci/pci.c | 22 ++
include/hw/pci/pci.h | 2 ++
2 files changed, 24 insertions(+)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index 1416ae202c..95806ead4f 100644
Get physical pci notation from hvm file and set hostaddr for virtio
iGPU.
Signed-off-by: Julia Zhang
---
hw/display/virtio-gpu.c| 6 ++
hw/xen/xen_pt.c| 10 +-
hw/xen/xen_pt.h| 1 -
include/hw/pci/pci_device.h| 1 +
include/hw/virtio
Hi all,
Sorry to late reply. This is v2 of the implementation of
resource_query_layout. This adds a new ioctl to let guest query information
of host resource, which is originally from Daniel Stone. We add some
changes to support query the correct stride of host resource before it's
created, which
From: Daniel Stone
A new ioctl to shuttle information between host and guest about the
actual buffer allocation, which can be used for interop between GL and
Vulkan when supporting standard window systems.
Signed-off-by: Daniel Stone
Co-developed-by: Julia Zhang
Signed-off-by: Julia Zhang
From: Daniel Stone
A new ioctl to shuttle information between host and guest about the
actual buffer allocation, which can be used for interop between GL and
Vulkan when supporting standard window systems.
---
hw/display/virtio-gpu-base.c| 4 ++
hw/display/virtio-gpu-virgl.c
Modify resource_query_layout to handle the use case that need to query
correct stride for guest linear resource before it is created.
Signed-off-by: Julia Zhang
---
hw/display/virtio-gpu-virgl.c | 20 +++-
include/standard-headers/linux/virtio_gpu.h | 8
/-/merge_requests/23896
virglrenderer mr: https:
//gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1268
Daniel Stone (1):
virgl: Implement resource_query_layout
Julia Zhang (1):
virgl: Modify resource_query_layout
hw/display/virtio-gpu-base.c| 4 +++
hw/display/virtio-gpu