On 6/14/25 15:14, Nicolin Chen wrote:
Introduce a new IOMMUFD_CMD_HW_QUEUE_ALLOC ioctl for user space to allocate
a HW QUEUE object for a vIOMMU specific HW-accelerated queue, e.g.:
  - NVIDIA's Virtual Command Queue
  - AMD vIOMMU's Command Buffer, Event Log Buffers, and PPR Log Buffers

Since this is introduced with NVIDIA's VCMDQs that access the guest memory
in the physical address space, add an iommufd_hw_queue_alloc_phys() helper
that will create an access object to the queue memory in the IOAS, to avoid
the mappings of the guest memory from being unmapped, during the life cycle
of the HW queue object.

Reviewed-by: Pranjal Shrivastava<[email protected]>
Reviewed-by: Kevin Tian<[email protected]>
Signed-off-by: Nicolin Chen<[email protected]>

Reviewed-by: Lu Baolu <[email protected]>

Reply via email to