]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Use log output for pty assignment if 'info chardev' is unavailable
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 16 Jan 2010 17:32:56 +0000 (18:32 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 18 Jan 2010 00:54:40 +0000 (01:54 +0100)
commita0356bcc41470684f4683f86af8eaea0154fd324
tree2584807e4918d368cca7a8f1a5f3d8e2c7878034
parentc2c4d51b2f9f2bb925337ef9e925e3d4a8d11b70
qemu: Use log output for pty assignment if 'info chardev' is unavailable

qemudFindCharDevicePTYsMonitor reports an error if 'info chardev' didn't
provide information for a requested device, even if the log output parsing
had found the pty path for that device. This makes pty assignment fail for
older QEMU/KVM versions. For example KVM 72 on Debian doesn't support
'info chardev', so qemuMonitorTextGetPtyPaths cannot parse any useful
information and the hash for device-id-to-pty-path mapping stays empty.

Make qemudFindCharDevicePTYsMonitor report an error only if the log output
parsing and the 'info chardev' parsing failed to provide the pty path.
src/qemu/qemu_driver.c