Thread (31 messages) 31 messages, 2 authors, 2025-01-07

Re: [PATCH v4 06/14] iommufd: Add IOMMUFD_OBJ_VEVENTQ and IOMMUFD_CMD_VEVENTQ_ALLOC

From: Baolu Lu <baolu.lu@linux.intel.com>
Date: 2025-01-06 02:52:42
Also in: linux-doc, linux-iommu, linux-kselftest, linux-patches, lkml

On 1/4/25 03:43, Nicolin Chen wrote:
Introduce a new IOMMUFD_OBJ_VEVENTQ object for vIOMMU Event Queue that
provides user space (VMM) another FD to read the vIOMMU Events.

Allow a vIOMMU object to allocate vEVENTQs, with a condition that each
vIOMMU can only have one single vEVENTQ per type.

Add iommufd_veventq_alloc() with iommufd_veventq_ops for the new ioctl.

Signed-off-by: Nicolin Chen<redacted>
---
  drivers/iommu/iommufd/iommufd_private.h |  58 +++++++++++
  include/linux/iommufd.h                 |   3 +
  include/uapi/linux/iommufd.h            |  31 ++++++
  drivers/iommu/iommufd/eventq.c          | 129 ++++++++++++++++++++++++
  drivers/iommu/iommufd/main.c            |   7 ++
  drivers/iommu/iommufd/viommu.c          |   2 +
  6 files changed, 230 insertions(+)
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help