Re: [Qemu-devel] [PATCH v1 repost] qtest: fix qtest log fd should be initialized before qtest chardev

2014-10-21 Thread Paolo Bonzini
On 10/22/2014 04:26 AM, john.liuli wrote: > From: Li Liu > > qtest_log_fp should be inited before qemu_chr_add_handlers. > If not the log dumped from callback functions may be lost. > > easy to reproduce it by command: > "QTEST_LOG=1 QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 > gtester

[Qemu-devel] [PATCH v1 repost] qtest: fix qtest log fd should be initialized before qtest chardev

2014-10-21 Thread john.liuli
From: Li Liu qtest_log_fp should be inited before qemu_chr_add_handlers. If not the log dumped from callback functions may be lost. easy to reproduce it by command: "QTEST_LOG=1 QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 gtester -k --verbose -m=quick tests/qdev-monitor-test" The log "[