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

2014-09-22 Thread Stefan Hajnoczi
On Wed, Sep 03, 2014 at 05:52:06PM +0800, 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

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

2014-09-03 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 "[