]> xenbits.xensource.com Git - libvirt.git/commit
qemu: hotplug: Simplify removal of managed PR infrastructure on unplug
authorPeter Krempa <pkrempa@redhat.com>
Wed, 11 Jul 2018 12:24:49 +0000 (14:24 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 20 Jul 2018 12:23:09 +0000 (14:23 +0200)
commit8498a1e2221305c7fe9a8f338e94bd09fe152859
tree3fd26d3a561fe3528a0c72a2198937d58c7c5a1a
parente417c23d397ad2df37ec0fa1f9a2dcc4a4c9e674
qemu: hotplug: Simplify removal of managed PR infrastructure on unplug

Extract the (possible) removal of the PR backend and daemon into a
separate helper which enters monitor on its own. This simplifies the
code and allows reuse of this function in the future e.g. for blockjobs
where removing a image with PR may result into PR not being necessary.

Since the PR is not used often the overhead of entering monitor again
should be negligible.

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