Skip to content

virtio-gpu: define a new command to get p2pdma_distance #217

@julizhan

Description

@julizhan

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 we need to define a new command follow the suggestion in https://lore.kernel.org/all/[email protected]/

Latest proposal: https://lore.kernel.org/all/[email protected]/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions