From: Nicolin Chen <nicolinc@nvidia.com>
To: <jgg@nvidia.com>, <robin.murphy@arm.com>, <kevin.tian@intel.com>
Cc: <eric.auger@redhat.com>, <yi.l.liu@intel.com>,
<baolu.lu@linux.intel.com>, <will@kernel.org>, <joro@8bytes.org>,
<shameerali.kolothum.thodi@huawei.com>,
<jean-philippe@linaro.org>,
<linux-arm-kernel@lists.infradead.org>, <iommu@lists.linux.dev>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH RFC v1 0/3] Add set_rid_user and unset_rid_user support
Date: Wed, 5 Apr 2023 23:25:33 -0700 [thread overview]
Message-ID: <cover.1680762112.git.nicolinc@nvidia.com> (raw)
This is a pair of new uAPI/ops for user space to set a user space virtual
Request ID for a passthrough PCI device, down to the IOMMU driver. This's
primarily used by SMMUv3 driver for now, to link the vSID and the pSID of
a device behind the SMMU. The link (lookup table) will be used to verify
an ATC_INV command from the user space for that device, and then replace
the virtual SID with the corresponding physical SID.
This is a RFC series, since I am not confident at all about the uAPI/ops
namings. Hopefully we can finalize this small series soon and include it
in the next version of SMMUv3 nesting series.
This series is available on Github:
https://github.com/nicolinc/iommufd/commits/set_rid_user-rfc-v1
Thanks!
Nicolin
Nicolin Chen (3):
iommu: Add set/unset_rid_user ops
iommufd: Add IOMMUFD_CMD_DEVICE_SET_RID and
IOMMUFD_CMD_DEVICE_UNSET_RID
iommu/arm-smmu-v3: Implement set_rid_user and unset_rid_user
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 45 +++++++++++++++++++++
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 2 +
drivers/iommu/iommufd/device.c | 39 ++++++++++++++++++
drivers/iommu/iommufd/iommufd_private.h | 2 +
drivers/iommu/iommufd/main.c | 4 ++
include/linux/iommu.h | 4 ++
include/uapi/linux/iommufd.h | 31 ++++++++++++++
7 files changed, 127 insertions(+)
--
2.40.0
WARNING: multiple messages have this Message-ID (diff)
From: Nicolin Chen <nicolinc@nvidia.com>
To: <jgg@nvidia.com>, <robin.murphy@arm.com>, <kevin.tian@intel.com>
Cc: <eric.auger@redhat.com>, <yi.l.liu@intel.com>,
<baolu.lu@linux.intel.com>, <will@kernel.org>, <joro@8bytes.org>,
<shameerali.kolothum.thodi@huawei.com>,
<jean-philippe@linaro.org>,
<linux-arm-kernel@lists.infradead.org>, <iommu@lists.linux.dev>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH RFC v1 0/3] Add set_rid_user and unset_rid_user support
Date: Wed, 5 Apr 2023 23:25:33 -0700 [thread overview]
Message-ID: <cover.1680762112.git.nicolinc@nvidia.com> (raw)
This is a pair of new uAPI/ops for user space to set a user space virtual
Request ID for a passthrough PCI device, down to the IOMMU driver. This's
primarily used by SMMUv3 driver for now, to link the vSID and the pSID of
a device behind the SMMU. The link (lookup table) will be used to verify
an ATC_INV command from the user space for that device, and then replace
the virtual SID with the corresponding physical SID.
This is a RFC series, since I am not confident at all about the uAPI/ops
namings. Hopefully we can finalize this small series soon and include it
in the next version of SMMUv3 nesting series.
This series is available on Github:
https://github.com/nicolinc/iommufd/commits/set_rid_user-rfc-v1
Thanks!
Nicolin
Nicolin Chen (3):
iommu: Add set/unset_rid_user ops
iommufd: Add IOMMUFD_CMD_DEVICE_SET_RID and
IOMMUFD_CMD_DEVICE_UNSET_RID
iommu/arm-smmu-v3: Implement set_rid_user and unset_rid_user
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 45 +++++++++++++++++++++
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 2 +
drivers/iommu/iommufd/device.c | 39 ++++++++++++++++++
drivers/iommu/iommufd/iommufd_private.h | 2 +
drivers/iommu/iommufd/main.c | 4 ++
include/linux/iommu.h | 4 ++
include/uapi/linux/iommufd.h | 31 ++++++++++++++
7 files changed, 127 insertions(+)
--
2.40.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2023-04-06 6:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-06 6:25 Nicolin Chen [this message]
2023-04-06 6:25 ` [PATCH RFC v1 0/3] Add set_rid_user and unset_rid_user support Nicolin Chen
2023-04-06 6:25 ` [PATCH RFC v1 1/3] iommu: Add set/unset_rid_user ops Nicolin Chen
2023-04-06 6:25 ` Nicolin Chen
2023-04-06 6:25 ` [PATCH RFC v1 2/3] iommufd: Add IOMMUFD_CMD_DEVICE_SET_RID and IOMMUFD_CMD_DEVICE_UNSET_RID Nicolin Chen
2023-04-06 6:25 ` Nicolin Chen
2023-04-06 6:25 ` [PATCH RFC v1 3/3] iommu/arm-smmu-v3: Implement set_rid_user and unset_rid_user Nicolin Chen
2023-04-06 6:25 ` Nicolin Chen
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=cover.1680762112.git.nicolinc@nvidia.com \
--to=nicolinc@nvidia.com \
--cc=baolu.lu@linux.intel.com \
--cc=eric.auger@redhat.com \
--cc=iommu@lists.linux.dev \
--cc=jean-philippe@linaro.org \
--cc=jgg@nvidia.com \
--cc=joro@8bytes.org \
--cc=kevin.tian@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=will@kernel.org \
--cc=yi.l.liu@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.