]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: Use unique directories for QMP processes
authorChris Venteicher <cventeic@redhat.com>
Wed, 13 Feb 2019 16:22:31 +0000 (17:22 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 19 Feb 2019 17:44:44 +0000 (18:44 +0100)
commit5724dca13560ff1f5ae012e8ad401602439da2a9
tree55c764e1b62f28e66d8c51915310aeda6109ebe3
parentf87eb56067280cf27f295d2ecb4e7842f95eb650
qemu_process: Use unique directories for QMP processes

Multiple QEMU processes for QMP commands can operate concurrently.

Use a unique directory under libDir for each QEMU process to avoid
pidfile and unix socket collision between processes.

The pid file name is changed from "capabilities.pidfile" to "qmp.pid"
because we no longer need to avoid a possible clash with a qemu domain
called "capabilities" now that the processes artifacts are stored in
their own unique temporary directories.

"Capabilities" was changed to "qmp" in the pid file name because these
processes are no longer specific to the capabilities usecase and are
more generic in terms of being used for any general purpose QMP message
exchanges with a QEMU process that is not associated with a domain.

Signed-off-by: Chris Venteicher <cventeic@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c
src/qemu/qemu_process.h