From 01c22f2cdd4fcf02276ea10f48253850a5fd7259 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Thu, 13 Mar 2014 14:17:29 +0000 Subject: main-loop: Suppress "I/O thread spun" warnings for qtest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When running under qtest we don't actually have any vcpu threads to be starved, so the warning about the I/O thread spinning isn't relevant, and the way qtest manipulates the simulated clock means the warning is produced a lot as a false positive. Suppress it if qtest_enabled(), so 'make check' output is less noisy. Signed-off-by: Peter Maydell Reviewed-by: Stefan Hajnoczi Signed-off-by: Andreas Färber --- stubs/Makefile.objs | 1 + stubs/qtest.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 stubs/qtest.c (limited to 'stubs') diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index df3aa7a64e..59c5a54239 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -18,6 +18,7 @@ stub-obj-y += mon-print-filename.o stub-obj-y += mon-protocol-event.o stub-obj-y += mon-set-error.o stub-obj-y += pci-drive-hot-add.o +stub-obj-y += qtest.o stub-obj-y += reset.o stub-obj-y += set-fd-handler.o stub-obj-y += slirp.o diff --git a/stubs/qtest.c b/stubs/qtest.c new file mode 100644 index 0000000000..e671ed8e8e --- /dev/null +++ b/stubs/qtest.c @@ -0,0 +1,14 @@ +/* + * qtest stubs + * + * Copyright (c) 2014 Linaro Limited + * Written by Peter Maydell + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#include "qemu-common.h" + +/* Needed for qtest_allowed() */ +bool qtest_allowed; -- cgit v1.2.1