qemu: Report cmdline output if VM dies early
authorCole Robinson <crobinso@redhat.com>
Mon, 17 May 2010 14:15:53 +0000 (10:15 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 17 May 2010 14:15:53 +0000 (10:15 -0400)
commit83be64034a0b530c904ceb4fd1ed1c10b5cdf4bf
treec76e1316af60861a4fde9501353496c14aca407b
parentd536f6b1771209c829f58128c9f2f2c0b5c29c56
qemu: Report cmdline output if VM dies early

qemuReadLogOutput early VM death detection is racy and won't always work.
Startup then errors when connecting to the VM monitor. This won't report
the emulator cmdline output which is typically the most useful diagnostic.

Check if the VM has died at the very end of the monitor connection step,
and if so, report the cmdline output.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=581381
src/qemu/qemu_driver.c