aboutsummaryrefslogtreecommitdiff
path: root/stubs/qtest.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-03-13 14:17:29 +0000
committerAndreas Färber <afaerber@suse.de>2014-03-13 21:36:50 +0100
commit01c22f2cdd4fcf02276ea10f48253850a5fd7259 (patch)
treecbdb89f66a43670a04f23d3c5976577498332254 /stubs/qtest.c
parentcb201b4872f16dfbce63f8648b2584631e2e965f (diff)
downloadqemu-01c22f2cdd4fcf02276ea10f48253850a5fd7259.zip
qemu-01c22f2cdd4fcf02276ea10f48253850a5fd7259.tar.gz
qemu-01c22f2cdd4fcf02276ea10f48253850a5fd7259.tar.bz2
main-loop: Suppress "I/O thread spun" warnings for qtest
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 <peter.maydell@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'stubs/qtest.c')
-rw-r--r--stubs/qtest.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/stubs/qtest.c b/stubs/qtest.c
new file mode 100644
index 0000000..e671ed8
--- /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;