[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v9 5/5] new qTest case to test the vhost-user-blk-server
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v9 5/5] new qTest case to test the vhost-user-blk-server |
Date: |
Thu, 18 Jun 2020 16:17:51 +0100 |
On Mon, Jun 15, 2020 at 02:39:07AM +0800, Coiby Xu wrote:
> This test case has the same tests as tests/virtio-blk-test.c except for
> tests have block_resize. Since vhost-user server can only server one
> client one time, two instances of qemu-storage-daemon are launched
> for the hotplug test.
>
> In order to not block scripts/tap-driver.pl, vhost-user-blk-server will
> send "quit" command to qemu-storage-daemon's QMP monitor. So a function
> is added to libqtest.c to establish socket connection with socket
> server.
>
> Signed-off-by: Coiby Xu <coiby.xu@gmail.com>
> ---
> tests/Makefile.include | 3 +-
> tests/qtest/Makefile.include | 2 +
> tests/qtest/libqos/vhost-user-blk.c | 130 +++++
> tests/qtest/libqos/vhost-user-blk.h | 48 ++
> tests/qtest/libqtest.c | 35 +-
> tests/qtest/libqtest.h | 17 +
> tests/qtest/vhost-user-blk-test.c | 739 ++++++++++++++++++++++++++++
> 7 files changed, 971 insertions(+), 3 deletions(-)
> create mode 100644 tests/qtest/libqos/vhost-user-blk.c
> create mode 100644 tests/qtest/libqos/vhost-user-blk.h
> create mode 100644 tests/qtest/vhost-user-blk-test.c
This test case fails for me:
qemu-system-x86_64: Failed to read from slave.
qemu-system-x86_64: Failed to set msg fds.
qemu-system-x86_64: vhost VQ 0 ring restore failed: -1: Success (0)
qemu-system-x86_64: Failed to read from slave.
qemu-system-x86_64: Failed to read from slave.
qemu-system-x86_64: Failed to read from slave.
qemu-system-x86_64: Failed to set msg fds.
qemu-system-x86_64: vhost VQ 0 ring restore failed: -1: Success (0)
qemu-system-x86_64: Failed to read msg header. Read -1 instead of 12. Original
request 11.
qemu-system-x86_64: vhost VQ 0 ring restore failed: -1: Input/output error (5)
Does "make -j4 check" pass for you?
Stefan
signature.asc
Description: PGP signature
- [PATCH 2/6] block-helpers: switch to int64_t block size values, (continued)
- [PATCH 2/6] block-helpers: switch to int64_t block size values, Stefan Hajnoczi, 2020/06/19
- [PATCH 3/6] block-helpers: rename check_logical_block_size() to check_block_size(), Stefan Hajnoczi, 2020/06/19
- [PATCH 4/6] block-helpers: use local_err in case errp is NULL, Stefan Hajnoczi, 2020/06/19
- [PATCH 5/6] block-helpers: keep the copyright line from the original file, Stefan Hajnoczi, 2020/06/19
- [PATCH 6/6] block-helpers: update doc comment in gtkdoc style, Stefan Hajnoczi, 2020/06/19
- [PATCH v9 4/5] vhost-user block device backend server, Coiby Xu, 2020/06/14
- [PATCH v9 5/5] new qTest case to test the vhost-user-blk-server, Coiby Xu, 2020/06/14
- Re: [PATCH v9 5/5] new qTest case to test the vhost-user-blk-server,
Stefan Hajnoczi <=
- Re: [PATCH v9 5/5] new qTest case to test the vhost-user-blk-server, Thomas Huth, 2020/06/24
- Re: [PATCH v9 0/5] vhost-user block device backend implementation, no-reply, 2020/06/14
- Re: [PATCH v9 0/5] vhost-user block device backend implementation, no-reply, 2020/06/14
Re: [PATCH v9 0/5] vhost-user block device backend implementation, Stefan Hajnoczi, 2020/06/19