An alternative solution that only adds the chardev to the definition
after the command succeeded.
Ján Tomko (2):
Split qemuDomainChrInsert into two parts
hotplug: only add a chardev to vmdef after monitor call
src/conf/domain_conf.c | 18 ++++++++--
src/conf/domain_conf.h | 7 ++--
src/libvirt_private.syms | 3 +-
src/qemu/qemu_hotplug.c | 88 +++++++++++++++++++++++++++++++-----------------
4 files changed, 79 insertions(+), 37 deletions(-)
--
2.0.5