summaryrefslogtreecommitdiffstats
path: root/include/sysemu
diff options
context:
space:
mode:
authorMichael S. Tsirkin2014-02-04 19:06:47 +0100
committerAndreas Färber2014-02-13 17:47:43 +0100
commitb3be57c358b3186b675ce4452a030fd3d9f37be0 (patch)
treeb7b6d96142e5fa0bf53e5bd72c2896dff4a87822 /include/sysemu
parentMerge remote-tracking branch 'remotes/afaerber/tags/prep-for-upstream' into s... (diff)
downloadqemu-b3be57c358b3186b675ce4452a030fd3d9f37be0.tar.gz
qemu-b3be57c358b3186b675ce4452a030fd3d9f37be0.tar.xz
qemu-b3be57c358b3186b675ce4452a030fd3d9f37be0.zip
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 'include/sysemu')
-rw-r--r--include/sysemu/qtest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/qtest.h b/include/sysemu/qtest.h
index 112a661ac4..6aca8e4c1f 100644
--- a/include/sysemu/qtest.h
+++ b/include/sysemu/qtest.h
@@ -23,6 +23,8 @@ static inline bool qtest_enabled(void)
return qtest_allowed;
}
+bool qtest_driver(void);
+
int qtest_init_accel(void);
void qtest_init(const char *qtest_chrdev, const char *qtest_log);