]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Split qemuDomainChrInsert into two parts
authorJán Tomko <jtomko@redhat.com>
Tue, 27 Jan 2015 17:30:15 +0000 (18:30 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 27 Jan 2015 17:30:15 +0000 (18:30 +0100)
commitdaf51be5f1b0f7b41c0813d43d6b66edfbe4f6d9
tree65090a53446ec2876cdfeb59f1f8dc0b48cb240a
parenta2bdfa5261a664c8833caa57352ce3730b0b7aa5
Split qemuDomainChrInsert into two parts

Do the allocation first, then add the actual device.
The second part should never fail. This is good
for live hotplug where we don't want to remove the device
on OOM after the monitor command succeeded.

The only change in behavior is that on failure, the
vmdef->consoles array is freed, not just the first console.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_hotplug.c