diff options
author | 2023-10-09 11:09:08 +0200 | |
---|---|---|
committer | 2023-10-18 10:10:49 +0200 | |
commit | 5621c02d5adf3841884bb751ec8cf43d931aaa25 (patch) | |
tree | 26d63c37f464dc7535ec4e49a57cf364c8d4202f /hw/core/machine-hmp-cmds.c | |
parent | vfio/common: Introduce vfio_container_add|del_section_window() (diff) | |
download | qemu-5621c02d5adf3841884bb751ec8cf43d931aaa25.tar.xz qemu-5621c02d5adf3841884bb751ec8cf43d931aaa25.zip |
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>
Diffstat (limited to 'hw/core/machine-hmp-cmds.c')
0 files changed, 0 insertions, 0 deletions