]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Move check for chardev backends which can't be hotplugged out of the monitor
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 Sep 2024 12:53:54 +0000 (14:53 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 19 Sep 2024 08:30:14 +0000 (10:30 +0200)
commitd897ad2b8944b8ea251572e778fbd889a1ea8a19
treee7cfe33078a5f83d7579090d1a0e1d22097a6a2e
parentb8129d253035c19b998dd31c085f0ea950cca374
qemu: Move check for chardev backends which can't be hotplugged out of the monitor

The upcoming refactor of the monitor code will make the hotplug code
paths use the same generator we have for commandline -chardev backends
which doesn't refuse to format certain backends which can't be
hotplugged.

To prepare for this we add a check to qemuHotplugChardevAttach()
refusing such hotplug and remove 'qemumonitorjsontest' test cases which
will not make sense any more.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c
tests/qemumonitorjsontest.c