aboutsummaryrefslogtreecommitdiff
path: root/qtest.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-02-04 20:06:47 +0200
committerAndreas Färber <afaerber@suse.de>2014-02-13 17:47:43 +0100
commitb3be57c358b3186b675ce4452a030fd3d9f37be0 (patch)
treeb7b6d96142e5fa0bf53e5bd72c2896dff4a87822 /qtest.c
parentf673e70ccc668607620cd6d30fd0b9bc7a54151d (diff)
qtest: don't report signals if qtest driver enabled
qtest driver always uses signals to kill qemu no need to report it, whatever the accelerator state. Add API to detect qtest driver, and suppress reporting signals in this case. Reported-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'qtest.c')
-rw-r--r--qtest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/qtest.c b/qtest.c
index dcf1301229..a738afc724 100644
--- a/qtest.c
+++ b/qtest.c
@@ -528,3 +528,8 @@ void qtest_init(const char *qtest_chrdev, const char *qtest_log)
qtest_chr = chr;
}
+
+bool qtest_driver(void)
+{
+ return qtest_chr;
+}