[Qemu-block] [PATCH] test: add drive-mirror qtest

2016-09-06 Thread Jie Wang
Signed-off-by: Jie Wang <wangji...@huawei.com> --- tests/Makefile.include| 3 ++ tests/drive-mirror-test.c | 96 +++ 2 files changed, 99 insertions(+) create mode 100755 tests/drive-mirror-test.c diff --git a/tests/Makefile.include b

[Qemu-block] [PATCH] iothread: fix epollfd leak in the process of delIOThread

2018-05-15 Thread Jie Wang
When we call addIOThread, the epollfd created in aio_context_setup, but not close it in the process of delIOThread, so the epollfd will leak. Signed-off-by: Jie Wang <wangji...@huawei.com> --- iothread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iothread.c b/iothread.c index a

[Qemu-block] [PATCH v2] iothread: fix epollfd leak in the process of delIOThread

2018-05-16 Thread Jie Wang
From: w00251574 <wangji...@huawei.com> When we call addIOThread, the epollfd created in aio_context_setup, but not close it in the process of delIOThread, so the epollfd will leak. Signed-off-by: Jie Wang <wangji...@huawei.com> --- include/block/aio.h | 8 util/aio-po

[Qemu-block] [PATCH v3] iothread: fix epollfd leak in the process of delIOThread

2018-05-16 Thread Jie Wang
From: w00251574 <wangji...@huawei.com> When we call addIOThread, the epollfd created in aio_context_setup, but not close it in the process of delIOThread, so the epollfd will leak. Signed-off-by: Jie Wang <wangji...@huawei.com> --- include/block/aio.h | 8 util/aio-po

[Qemu-block] [PATCH v5] iothread: fix epollfd leak in the process of delIOThread

2018-05-16 Thread Jie Wang
When we call addIOThread, the epollfd created in aio_context_setup, but not close it in the process of delIOThread, so the epollfd will leak. Signed-off-by: Jie Wang <wangji...@huawei.com> --- include/block/aio.h | 8 util/aio-posix.c| 13 ++--- util/aio-win32.c

[Qemu-block] [PATCH v6 1/2] iothread: fix epollfd leak in the process of delIOThread

2018-05-16 Thread Jie Wang
When we call addIOThread, the epollfd created in aio_context_setup, but not close it in the process of delIOThread, so the epollfd will leak. Signed-off-by: Jie Wang <wangji...@huawei.com> --- include/block/aio.h | 8 util/aio-posix.c| 9 + util/aio-win32.c| 4

[Qemu-block] [PATCH v6 2/2] iothread: let aio_epoll_disable fit to aio_context_destroy

2018-05-16 Thread Jie Wang
epoll_available will only be set if epollfd != -1, os we can swap the two variables in aio_epoll_disable, and aio_context_destroy can call aio_epoll_disable directly. Signed-off-by: Jie Wang <wangji...@huawei.com> --- util/aio-posix.c | 10 -- 1 file changed, 4 insertions(+), 6 del

[Qemu-block] [PATCH] util/async: avoid NULL pointer dereference

2018-06-11 Thread Jie Wang
if laio_init create linux_aio failed and return NULL, NULL pointer dereference will occur when laio_attach_aio_context dereference linux_aio in aio_get_linux_aio, so add assert to avoid it. Signed-off-by: Jie Wang --- util/async.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/async.c

[Qemu-block] [PATCH v2] util/async: avoid NULL pointer dereference

2018-06-11 Thread Jie Wang
if laio_init create linux_aio failed and return NULL, NULL pointer dereference will occur when laio_attach_aio_context dereference linux_aio in aio_get_linux_aio. Let's avoid it and report error. Signed-off-by: Jie Wang --- block/file-posix.c | 19 +-- util/async.c | 5

[Qemu-block] [PATCH v2] util/async: avoid NULL pointer dereference

2018-06-11 Thread Jie Wang
if laio_init create linux_aio failed and return NULL, NULL pointer dereference will occur when laio_attach_aio_context dereference linux_aio in aio_get_linux_aio. Let's avoid it and report error. Signed-off-by: Jie Wang --- block/file-posix.c | 19 +-- util/async.c | 5

Re: [Qemu-block] [PATCH] pr-manager-helper: fix pr process been killed when reconectting

2019-05-29 Thread Jie Wang
:45 PM, Paolo Bonzini wrote: >> On 28/05/19 15:06, Jie Wang wrote: >>> if pr-helper been killed and qemu send disconnect event to libvirt >>> and libvirt started a new pr-helper process, the new pr-heleper >>> been killed again when qemu is connectting to the new

[Qemu-block] [PATCH] pr-manager-helper: fix pr process been killed when reconectting

2019-05-28 Thread Jie Wang
-off-by: Jie Wang --- scsi/pr-manager-helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scsi/pr-manager-helper.c b/scsi/pr-manager-helper.c index 438380fced..b7341b8f47 100644 --- a/scsi/pr-manager-helper.c +++ b/scsi/pr-manager-helper.c @@ -120,6 +120,7 @@ static int

[Qemu-block] question: Does qemu-pr-helper have its own log files?

2019-04-22 Thread Jie Wang
 Does qemu-pr-helper have its own log files?

[PATCH] hw/vhost-user-blk: fix ioeventfd add failed when start reenter

2022-03-28 Thread Jie Wang via
27 0x7fca423e8ecc in kvm_handle_io 28 0x7fca423ecb48 in kvm_cpu_exec 29 0x7fca424279d5 in qemu_kvm_cpu_thread_fn 30 0x7fca423c9480 in qemu_thread_start 31 0x7fca4257ff3b in ?? () from /usr/lib64/libpthread.so.0 32 0x7fca4270b550 in clone () from /usr/lib64/libc.so.6 Signed-off-by: Ji