Re: [Qemu-devel] [PATCH] qemu-progress: redirct qemu progress message to another file stream

2018-04-18 Thread Zhenwei.Pi
On 04/18/2018 09:06 PM, Max Reitz wrote: On 2018-04-16 09:46, zhenwei pi wrote: currently qemu progress message only print into stdout, and other thread may print some log into stdout at the same time. add a new api qemu_progress_set_output to redirect progress message to another file stream.

[Qemu-devel] [PATCH] file-posix: Support fallocate for block device

2018-03-27 Thread zhenwei.pi
range" with default value as true. if do_fallocate returns -ENOTSUP, it will be set false. Signed-off-by: zhenwei.pi <zhenwei...@youruncloud.com> --- block/file-posix.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/block/file-posix.c b/block/fi

[Qemu-devel] [PATCH] usbredir: reorder fields in USBRedirDevice to reduce padding

2018-03-06 Thread zhenwei.pi
Changing the current ordering saves 8 bytes per entry in x86_64. Signed-off-by: zhenwei.pi <zhenwei...@youruncloud.com> --- hw/usb/redirect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index ec17430..65a9196 100644 --- a/