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-09 10:10:48 -04:00
2023-09-08 13:08:52 +03:00
2023-01-08 01:54:22 -05:00
2023-09-08 13:08:52 +03:00
2023-09-06 11:14:55 -04:00
2023-07-11 00:11:25 +02:00
2023-02-08 07:16:23 +01:00
2023-07-25 17:13:53 +03:00
2023-09-08 13:08:52 +03:00
2023-10-04 04:53:52 -04:00
2023-09-08 13:08:52 +03:00
2023-07-25 17:13:45 +03:00
2023-09-08 13:08:52 +03:00
2023-01-08 01:54:22 -05:00
2023-10-17 10:05:51 -04:00
2023-09-08 13:08:52 +03:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00