From a77e6b14b4ffbfb768f96698f0f66e2f00af1323 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolaev Date: Tue, 10 Jun 2014 13:03:23 +0300 Subject: Add qtest for vhost-user This test creates a 'server' chardev to listen for vhost-user messages. Once VHOST_USER_SET_MEM_TABLE is received it mmaps each received region, and read 1k bytes from it. The read data is compared to data from readl. The test requires hugetlbfs to be already mounted and writable. The mount point defaults to '/hugetlbfs' and can be specified via the environment variable QTEST_HUGETLBFS_PATH. The rom pc-bios/pxe-virtio.rom is used to instantiate a virtio pcicontroller. Signed-off-by: Antonios Motakis Signed-off-by: Nikolay Nikolaev Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin MST: fix up coding style MST: disable vhost test temporarily This test needs a bit more work: issues have been found on legacy systems, disable it for now to avoid false positives for people. Will re-enable after issues are addressed. Reported-by: Igor Mammedov Signed-off-by: Michael S. Tsirkin --- stubs/is-daemonized.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'stubs') diff --git a/stubs/is-daemonized.c b/stubs/is-daemonized.c index 16ce7c7324..c0ee9171a7 100644 --- a/stubs/is-daemonized.c +++ b/stubs/is-daemonized.c @@ -1,7 +1,9 @@ #include "qemu-common.h" -#include "sysemu/os-posix.h" +/* Win32 has its own inline stub */ +#ifndef _WIN32 bool is_daemonized(void) { - return true; + return false; } +#endif -- cgit v1.2.1