From: Joao Martins <joao.m.martins@oracle.com>
To: iommu@lists.linux.dev
Cc: Jason Gunthorpe <jgg@nvidia.com>,
Kevin Tian <kevin.tian@intel.com>,
Shameerali Kolothum Thodi <shameerali.kolothum.thodi@huawei.com>,
Lu Baolu <baolu.lu@linux.intel.com>, Yi Liu <yi.l.liu@intel.com>,
Yi Y Sun <yi.y.sun@intel.com>, Nicolin Chen <nicolinc@nvidia.com>,
Joerg Roedel <joro@8bytes.org>,
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Zhenzhong Duan <zhenzhong.duan@intel.com>,
Alex Williamson <alex.williamson@redhat.com>,
kvm@vger.kernel.org, Joao Martins <joao.m.martins@oracle.com>
Subject: [PATCH v6 01/18] vfio/iova_bitmap: Export more API symbols
Date: Tue, 24 Oct 2023 14:50:52 +0100 [thread overview]
Message-ID: <20231024135109.73787-2-joao.m.martins@oracle.com> (raw)
In-Reply-To: <20231024135109.73787-1-joao.m.martins@oracle.com>
In preparation to move iova_bitmap into iommufd, export the rest of API
symbols that will be used in what could be used by modules, namely:
iova_bitmap_alloc
iova_bitmap_free
iova_bitmap_for_each
Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
---
drivers/vfio/iova_bitmap.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/vfio/iova_bitmap.c b/drivers/vfio/iova_bitmap.c
index 0848f920efb7..f54b56388e00 100644
--- a/drivers/vfio/iova_bitmap.c
+++ b/drivers/vfio/iova_bitmap.c
@@ -268,6 +268,7 @@ struct iova_bitmap *iova_bitmap_alloc(unsigned long iova, size_t length,
iova_bitmap_free(bitmap);
return ERR_PTR(rc);
}
+EXPORT_SYMBOL_GPL(iova_bitmap_alloc);
/**
* iova_bitmap_free() - Frees an IOVA bitmap object
@@ -289,6 +290,7 @@ void iova_bitmap_free(struct iova_bitmap *bitmap)
kfree(bitmap);
}
+EXPORT_SYMBOL_GPL(iova_bitmap_free);
/*
* Returns the remaining bitmap indexes from mapped_total_index to process for
@@ -387,6 +389,7 @@ int iova_bitmap_for_each(struct iova_bitmap *bitmap, void *opaque,
return ret;
}
+EXPORT_SYMBOL_GPL(iova_bitmap_for_each);
/**
* iova_bitmap_set() - Records an IOVA range in bitmap
--
2.17.2
next prev parent reply other threads:[~2023-10-24 13:51 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-24 13:50 [PATCH v6 00/18] IOMMUFD Dirty Tracking Joao Martins
2023-10-24 13:50 ` Joao Martins [this message]
2023-10-24 13:50 ` [PATCH v6 02/18] vfio: Move iova_bitmap into iommufd Joao Martins
2023-10-24 13:50 ` [PATCH v6 03/18] iommufd/iova_bitmap: Move symbols to IOMMUFD namespace Joao Martins
2023-10-24 13:50 ` [PATCH v6 04/18] iommu: Add iommu_domain ops for dirty tracking Joao Martins
2023-10-24 13:50 ` [PATCH v6 05/18] iommufd: Add a flag to enforce dirty tracking on attach Joao Martins
2023-10-24 13:50 ` [PATCH v6 06/18] iommufd: Add IOMMU_HWPT_SET_DIRTY_TRACKING Joao Martins
2023-10-24 13:50 ` [PATCH v6 07/18] iommufd: Add IOMMU_HWPT_GET_DIRTY_BITMAP Joao Martins
2023-10-24 13:50 ` [PATCH v6 08/18] iommufd: Add capabilities to IOMMU_GET_HW_INFO Joao Martins
2023-10-24 13:51 ` [PATCH v6 09/18] iommufd: Add a flag to skip clearing of IOPTE dirty Joao Martins
2023-10-24 13:51 ` [PATCH v6 10/18] iommu/amd: Add domain_alloc_user based domain allocation Joao Martins
2023-10-24 13:51 ` [PATCH v6 11/18] iommu/amd: Access/Dirty bit support in IOPTEs Joao Martins
2023-10-24 13:51 ` [PATCH v6 12/18] iommu/vt-d: Access/Dirty bit support for SS domains Joao Martins
2023-10-24 13:51 ` [PATCH v6 13/18] iommufd/selftest: Expand mock_domain with dev_flags Joao Martins
2023-10-24 13:51 ` [PATCH v6 14/18] iommufd/selftest: Test IOMMU_HWPT_ALLOC_DIRTY_TRACKING Joao Martins
2023-10-24 13:51 ` [PATCH v6 15/18] iommufd/selftest: Test IOMMU_HWPT_SET_DIRTY_TRACKING Joao Martins
2023-10-24 13:51 ` [PATCH v6 16/18] iommufd/selftest: Test IOMMU_HWPT_GET_DIRTY_BITMAP Joao Martins
2023-10-24 13:51 ` [PATCH v6 17/18] iommufd/selftest: Test out_capabilities in IOMMU_GET_HW_INFO Joao Martins
2023-10-24 13:51 ` [PATCH v6 18/18] iommufd/selftest: Test IOMMU_HWPT_GET_DIRTY_BITMAP_NO_CLEAR flag Joao Martins
2023-10-24 15:55 ` [PATCH v6 00/18] IOMMUFD Dirty Tracking Jason Gunthorpe
2023-10-24 18:11 ` Nicolin Chen
2024-10-29 2:35 ` Zhangfei Gao
2024-10-29 2:52 ` Yi Liu
2024-10-29 8:05 ` Zhangfei Gao
2024-10-29 9:34 ` Yi Liu
2024-10-30 15:15 ` Zhangfei Gao
2024-10-30 15:36 ` Jason Gunthorpe
2024-10-30 15:47 ` Joao Martins
2024-10-30 15:57 ` Shameerali Kolothum Thodi
2024-10-30 16:56 ` Joao Martins
2024-10-30 18:41 ` Shameerali Kolothum Thodi
2024-10-30 20:37 ` Joao Martins
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=20231024135109.73787-2-joao.m.martins@oracle.com \
--to=joao.m.martins@oracle.com \
--cc=alex.williamson@redhat.com \
--cc=baolu.lu@linux.intel.com \
--cc=iommu@lists.linux.dev \
--cc=jgg@nvidia.com \
--cc=joro@8bytes.org \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=nicolinc@nvidia.com \
--cc=robin.murphy@arm.com \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=will@kernel.org \
--cc=yi.l.liu@intel.com \
--cc=yi.y.sun@intel.com \
--cc=zhenzhong.duan@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox