From: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
To: Julia Zhang <julia.zhang@amd.com>
Cc: virtio-comment@lists.linux.dev,
"Michael S . Tsirkin" <mst@redhat.com>,
Chen Jiqian <Jiqian.Chen@amd.com>,
Zhu Lingshan <lingshan.zhu@amd.com>,
Huang Rui <ray.huang@amd.com>
Subject: Re: [PATCH] virtio-gpu: get p2pdma distance
Date: Tue, 21 Jan 2025 15:00:35 +0100 [thread overview]
Message-ID: <Z4+og7rL0h5JGYCd@fedora> (raw)
In-Reply-To: <20250114101612.88304-1-julia.zhang@amd.com>
On Tue, Jan 14, 2025 at 06:16:13PM +0800, Julia Zhang wrote:
> PCI peer-to-peer DMA transaction may be used in guest for some scenes.
> For example, dGPU prime feature will let virtio-iGPU access to
> passthrough dGPU buffer.
>
> To support P2P DMA transaction in guest, virtio-gpu needs to check the
> compatibility which is represented by p2pdma_distance. This defines a
> command VIRTIO_GPU_CMD_P2PDMA_DISTANCE to allow guest send virtual pci
> notation of two devices to host and get host physical p2pdma_distance
> of these two PCI devices.
>
> Signed-off-by: Julia Zhang <julia.zhang@amd.com>
> ---
> Hi all,
>
> We are trying to implement dGPU prime feature in guest which will let
> virtio-iGPU read rendered data of passthrough dGPU. Before that,
> virtio gpu driver needs to get p2pdma_distance to check if P2P DMA
> transaction is possible or not.
>
> To implement getting p2pdma_distance, QEMU needs to handle the command
> from guest with virtual pci notations of two PCI devices and send it to
> host kernel and return host physical distance back to guest.
>
> So this defines the new command follow the suggestion in
> https://lore.kernel.org/all/20241207105537.542441-4-julia.zhang@amd.com/
>
> Regards,
> Julia
> ---
> device-types/gpu/description.tex | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
Reviewed-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
next prev parent reply other threads:[~2025-01-21 14:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-14 10:16 [PATCH] virtio-gpu: get p2pdma distance Julia Zhang
2025-01-21 14:00 ` Matias Ezequiel Vara Larsen [this message]
2025-02-26 2:26 ` Zhang, Julia
2025-02-26 7:17 ` Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z4+og7rL0h5JGYCd@fedora \
--to=mvaralar@redhat.com \
--cc=Jiqian.Chen@amd.com \
--cc=julia.zhang@amd.com \
--cc=lingshan.zhu@amd.com \
--cc=mst@redhat.com \
--cc=ray.huang@amd.com \
--cc=virtio-comment@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox