[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 03/19] fuzz: add fuzz accelerator
From: |
Oleinik, Alexander |
Subject: |
[Qemu-devel] [RFC 03/19] fuzz: add fuzz accelerator |
Date: |
Thu, 25 Jul 2019 03:23:46 +0000 |
Much like the qtest accelerator, the fuzz accelerator skips the CPU
emulation
Signed-off-by: Alexander Oleinik <address@hidden>
---
include/sysemu/qtest.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/sysemu/qtest.h b/include/sysemu/qtest.h
index cd114b8d80..adfbd10d20 100644
--- a/include/sysemu/qtest.h
+++ b/include/sysemu/qtest.h
@@ -23,7 +23,12 @@ static inline bool qtest_enabled(void)
}
bool qtest_driver(void);
-
+#ifdef CONFIG_FUZZ
+/* Both the client and the server have qtest_init's, Rename on of them... */
+void qtest_init_server(const char *qtest_chrdev, const char *qtest_log, Error
**errp);
+void qtest_server_recv(GString *inbuf); /* Client sends commands using this */
+#else
void qtest_init(const char *qtest_chrdev, const char *qtest_log, Error **errp);
+#endif
#endif
--
2.20.1
- [Qemu-devel] [RFC 02/19] fuzz: add FUZZ_TARGET type to qemu module system, (continued)
- [Qemu-devel] [RFC 02/19] fuzz: add FUZZ_TARGET type to qemu module system, Oleinik, Alexander, 2019/07/24
- [Qemu-devel] [RFC 07/19] fuzz: Modify libqtest to directly invoke qtest.c, Oleinik, Alexander, 2019/07/24
- [Qemu-devel] [RFC 08/19] fuzz: add shims to intercept libfuzzer init, Oleinik, Alexander, 2019/07/24
- [Qemu-devel] [RFC 03/19] fuzz: add fuzz accelerator,
Oleinik, Alexander <=
- [Qemu-devel] [RFC 05/19] fuzz: expose qemu_savevm_state & skip state header, Oleinik, Alexander, 2019/07/24
- [Qemu-devel] [RFC 06/19] fuzz: Add ramfile for fast vmstate/vmload, Oleinik, Alexander, 2019/07/24
- [Qemu-devel] [RFC 04/19] fuzz: Add qos support to fuzz targets, Oleinik, Alexander, 2019/07/24