diff options
| author | Zhenzhong Duan <zhenzhong.duan@intel.com> | 2026-04-01 04:03:53 -0400 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2026-04-21 18:28:42 +0200 |
| commit | e2b7310276087351fadd6afbe9e5a3fff9c25f8d (patch) | |
| tree | 5cd6929903d614713d8c689f1b92dca2a98850de /backends | |
| parent | 4bd49cd2630f5f5300762ef233d8dd9307ba37c4 (diff) | |
| download | qemu-e2b7310276087351fadd6afbe9e5a3fff9c25f8d.tar.gz qemu-e2b7310276087351fadd6afbe9e5a3fff9c25f8d.zip | |
iommufd: Rename all the idev and idevc variables to hiod and hiodc
We used idev and idevc naming for HostIOMMUDeviceIOMMUFD and corresponding
class variables which followed the iommufd_device naming in linux kernel.
This is mixed with the hiod naming for base type HostIOMMUDevice. Rename
HostIOMMUDeviceIOMMUFD* to hiodi* for consistency in QEMU.
No functional change intended.
Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20260401080354.1347212-1-zhenzhong.duan@intel.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/iommufd.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/backends/iommufd.c b/backends/iommufd.c index e1fee16acf..410b044370 100644 --- a/backends/iommufd.c +++ b/backends/iommufd.c @@ -538,24 +538,24 @@ bool iommufd_backend_alloc_veventq(IOMMUFDBackend *be, uint32_t viommu_id, return true; } -bool host_iommu_device_iommufd_attach_hwpt(HostIOMMUDeviceIOMMUFD *idev, +bool host_iommu_device_iommufd_attach_hwpt(HostIOMMUDeviceIOMMUFD *hiodi, uint32_t hwpt_id, Error **errp) { - HostIOMMUDeviceIOMMUFDClass *idevc = - HOST_IOMMU_DEVICE_IOMMUFD_GET_CLASS(idev); + HostIOMMUDeviceIOMMUFDClass *hiodic = + HOST_IOMMU_DEVICE_IOMMUFD_GET_CLASS(hiodi); - g_assert(idevc->attach_hwpt); - return idevc->attach_hwpt(idev, hwpt_id, errp); + g_assert(hiodic->attach_hwpt); + return hiodic->attach_hwpt(hiodi, hwpt_id, errp); } -bool host_iommu_device_iommufd_detach_hwpt(HostIOMMUDeviceIOMMUFD *idev, +bool host_iommu_device_iommufd_detach_hwpt(HostIOMMUDeviceIOMMUFD *hiodi, Error **errp) { - HostIOMMUDeviceIOMMUFDClass *idevc = - HOST_IOMMU_DEVICE_IOMMUFD_GET_CLASS(idev); + HostIOMMUDeviceIOMMUFDClass *hiodic = + HOST_IOMMU_DEVICE_IOMMUFD_GET_CLASS(hiodi); - g_assert(idevc->detach_hwpt); - return idevc->detach_hwpt(idev, errp); + g_assert(hiodic->detach_hwpt); + return hiodic->detach_hwpt(hiodi, errp); } static int hiod_iommufd_get_cap(HostIOMMUDevice *hiod, int cap, Error **errp) @@ -591,10 +591,10 @@ static bool hiod_iommufd_get_pasid_info(HostIOMMUDevice *hiod, static void hiod_iommufd_class_init(ObjectClass *oc, const void *data) { - HostIOMMUDeviceClass *hioc = HOST_IOMMU_DEVICE_CLASS(oc); + HostIOMMUDeviceClass *hiodc = HOST_IOMMU_DEVICE_CLASS(oc); - hioc->get_cap = hiod_iommufd_get_cap; - hioc->get_pasid_info = hiod_iommufd_get_pasid_info; + hiodc->get_cap = hiod_iommufd_get_cap; + hiodc->get_pasid_info = hiod_iommufd_get_pasid_info; }; static const TypeInfo types[] = { |
