]> git.proxmox.com Git - mirror_qemu.git/commit - MAINTAINERS
util/char_dev: Add open_cdev()
authorYi Liu <yi.l.liu@intel.com>
Tue, 21 Nov 2023 08:44:01 +0000 (16:44 +0800)
committerCédric Le Goater <clg@redhat.com>
Tue, 19 Dec 2023 18:03:38 +0000 (19:03 +0100)
commitd6b5c4c1b516a8176b74ec35a0af8cf89b04b6c1
tree4410f17ee6d5824cf7a85c615fd1faa568d6f092
parent6e6d8ac62b5b38dc9d4b69ffdf073f0a0b43b7be
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>
MAINTAINERS
include/qemu/chardev_open.h [new file with mode: 0644]
util/chardev_open.c [new file with mode: 0644]
util/meson.build