Zhenzhong Duan 5621c02d5a vfio/common: Extract out vfio_kvm_device_[add/del]_fd
Introduce two new helpers, vfio_kvm_device_[add/del]_fd
which take as input a file descriptor which can be either a group fd or
a cdev fd. This uses the new KVM_DEV_VFIO_FILE VFIO KVM device group,
which aliases to the legacy KVM_DEV_VFIO_GROUP.

vfio_kvm_device_[add/del]_group then call those new helpers.

Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2023-10-18 10:10:49 +02:00
..
2023-10-05 09:01:01 -04:00
2023-10-03 07:43:44 -04:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-10-16 12:36:55 -04:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-10-05 09:01:01 -04:00
2023-09-06 11:14:55 -04:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-20 07:54:34 +03:00
2023-10-13 13:56:28 +09:00
2023-10-17 10:05:51 -04:00
2023-09-08 13:08:52 +03:00