mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
vfio: Rename VFIODevice related services
Rename these routines : vfio_disable_irqindex -> vfio_device_irq_disable vfio_unmask_single_irqindex -> vfio_device_irq_unmask vfio_mask_single_irqindex -> vfio_device_irq_mask vfio_set_irq_signaling -> vfio_device_irq_set_signaling vfio_attach_device -> vfio_device_attach vfio_detach_device -> vfio_device_detach vfio_get_region_info -> vfio_device_get_region_info vfio_get_dev_region_info -> vfio_device_get_region_info_type vfio_has_region_cap -> vfio_device_has_region_cap vfio_reset_handler -> vfio_device_reset_hander to better reflect the namespace they belong to. Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-37-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
11b8b9d53d
commit
e218ccf0c9
12 changed files with 112 additions and 112 deletions
|
@ -865,7 +865,7 @@ static int vfio_device_groupid(VFIODevice *vbasedev, Error **errp)
|
|||
}
|
||||
|
||||
/*
|
||||
* vfio_attach_device: attach a device to a security context
|
||||
* vfio_device_attach: attach a device to a security context
|
||||
* @name and @vbasedev->name are likely to be different depending
|
||||
* on the type of the device, hence the need for passing @name
|
||||
*/
|
||||
|
@ -881,7 +881,7 @@ static bool vfio_legacy_attach_device(const char *name, VFIODevice *vbasedev,
|
|||
return false;
|
||||
}
|
||||
|
||||
trace_vfio_attach_device(vbasedev->name, groupid);
|
||||
trace_vfio_device_attach(vbasedev->name, groupid);
|
||||
|
||||
if (!vfio_device_hiod_realize(vbasedev, errp)) {
|
||||
return false;
|
||||
|
@ -919,7 +919,7 @@ static void vfio_legacy_detach_device(VFIODevice *vbasedev)
|
|||
QLIST_REMOVE(vbasedev, global_next);
|
||||
QLIST_REMOVE(vbasedev, container_next);
|
||||
vbasedev->bcontainer = NULL;
|
||||
trace_vfio_detach_device(vbasedev->name, group->groupid);
|
||||
trace_vfio_device_detach(vbasedev->name, group->groupid);
|
||||
vfio_put_base_device(vbasedev);
|
||||
vfio_put_group(group);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue