[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 12/13] tests/qtest/vhost-user-blk-test: use memory-backend-shm
From: |
Stefano Garzarella |
Subject: |
[PATCH v8 12/13] tests/qtest/vhost-user-blk-test: use memory-backend-shm |
Date: |
Tue, 18 Jun 2024 12:05:27 +0200 |
`memory-backend-memfd` is available only on Linux while the new
`memory-backend-shm` can be used on any POSIX-compliant operating
system. Let's use it so we can run the test in multiple environments.
Since we are here, let`s remove `share=on` which is the default for shm
(and also for memfd).
Acked-by: Thomas Huth <thuth@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
---
v6
- removed `share=on` since it's the default [David]
---
tests/qtest/vhost-user-blk-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qtest/vhost-user-blk-test.c
b/tests/qtest/vhost-user-blk-test.c
index 117b9acd10..ea90d41232 100644
--- a/tests/qtest/vhost-user-blk-test.c
+++ b/tests/qtest/vhost-user-blk-test.c
@@ -906,7 +906,7 @@ static void start_vhost_user_blk(GString *cmd_line, int
vus_instances,
vhost_user_blk_bin);
g_string_append_printf(cmd_line,
- " -object memory-backend-memfd,id=mem,size=256M,share=on "
+ " -object memory-backend-shm,id=mem,size=256M "
" -M memory-backend=mem -m 256M ");
for (i = 0; i < vus_instances; i++) {
--
2.45.2
- [PATCH v8 02/13] libvhost-user: set msg.msg_control to NULL when it is empty, (continued)
- [PATCH v8 02/13] libvhost-user: set msg.msg_control to NULL when it is empty, Stefano Garzarella, 2024/06/18
- [PATCH v8 03/13] libvhost-user: fail vu_message_write() if sendmsg() is failing, Stefano Garzarella, 2024/06/18
- [PATCH v8 04/13] libvhost-user: mask F_INFLIGHT_SHMFD if memfd is not supported, Stefano Garzarella, 2024/06/18
- [PATCH v8 05/13] vhost-user-server: do not set memory fd non-blocking, Stefano Garzarella, 2024/06/18
- [PATCH v8 06/13] contrib/vhost-user-blk: fix bind() using the right size of the address, Stefano Garzarella, 2024/06/18
- [PATCH v8 08/13] vhost-user: enable frontends on any POSIX system, Stefano Garzarella, 2024/06/18
- [PATCH v8 07/13] contrib/vhost-user-*: use QEMU bswap helper functions, Stefano Garzarella, 2024/06/18
- [PATCH v8 09/13] libvhost-user: enable it on any POSIX system, Stefano Garzarella, 2024/06/18
- [PATCH v8 10/13] contrib/vhost-user-blk: enable it on any POSIX system, Stefano Garzarella, 2024/06/18
- [PATCH v8 11/13] hostmem: add a new memory backend based on POSIX shm_open(), Stefano Garzarella, 2024/06/18
- [PATCH v8 12/13] tests/qtest/vhost-user-blk-test: use memory-backend-shm,
Stefano Garzarella <=
- [PATCH v8 13/13] tests/qtest/vhost-user-test: add a test case for memory-backend-shm, Stefano Garzarella, 2024/06/18