qemu: Implement support for hotplugging evdev input devices
commit57f29f675dcbb4a8399eea1d73b95f8ff2f4975d
authorRayhan Faizel <rayhan.faizel@gmail.com>
Wed, 15 May 2024 10:27:53 +0000 (15 15:57 +0530)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 16 May 2024 12:56:59 +0000 (16 14:56 +0200)
treea49a488640f85570fb63be266160355952faed2d
parent94108cdd59864a5f267a11e3324e603ad6f60323
qemu: Implement support for hotplugging evdev input devices

Unlike other input types, evdev is not a true device since it's backed by
'-object'. We must use object-add/object-del monitor commands instead of
device-add/device-del in this particular case.

This patch adds support for handling live attachment and
detachment of evdev type devices.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/529
Signed-off-by: Rayhan Faizel <rayhan.faizel@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_hotplug.c