aboutsummaryrefslogtreecommitdiff
path: root/cpu-target.c
diff options
context:
space:
mode:
authorYi Liu <yi.l.liu@intel.com>2023-11-21 16:44:01 +0800
committerCédric Le Goater <clg@redhat.com>2023-12-19 19:03:38 +0100
commitd6b5c4c1b516a8176b74ec35a0af8cf89b04b6c1 (patch)
tree4410f17ee6d5824cf7a85c615fd1faa568d6f092 /cpu-target.c
parent6e6d8ac62b5b38dc9d4b69ffdf073f0a0b43b7be (diff)
util/char_dev: Add open_cdev()
/dev/vfio/devices/vfioX may not exist. In that case it is still possible to open /dev/char/$major:$minor instead. Add helper function to abstract the cdev open. Suggested-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'cpu-target.c')
0 files changed, 0 insertions, 0 deletions