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

Re: [PATCH v4 07/14] iommufd/viommu: Add iommufd_viommu_get_vdev_id helper

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

On 1/4/25 03:43, Nicolin Chen wrote:
This is a reverse search v.s. iommufd_viommu_find_dev, as drivers may want
to convert a struct device pointer (physical) to its virtual device ID for
an event injection to the user space VM.

Again, this avoids exposing more core structures to the drivers, than the
iommufd_viommu alone.

Signed-off-by: Nicolin Chen<redacted>
---
  include/linux/iommufd.h        |  8 ++++++++
  drivers/iommu/iommufd/driver.c | 20 ++++++++++++++++++++
  2 files changed, 28 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