[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/8] tests/fuzz: Extract ioport_fuzz_qtest() method
From: |
Stefan Hajnoczi |
Subject: |
[PULL 6/8] tests/fuzz: Extract ioport_fuzz_qtest() method |
Date: |
Tue, 19 May 2020 09:00:52 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
Extract generic ioport_fuzz_qtest() method from
i440fx_fuzz_qtest(). This will help to write tests
not specific to the i440FX controller.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
tests/qtest/fuzz/i440fx_fuzz.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/tests/qtest/fuzz/i440fx_fuzz.c b/tests/qtest/fuzz/i440fx_fuzz.c
index 558fa17c93..bcd6769b4c 100644
--- a/tests/qtest/fuzz/i440fx_fuzz.c
+++ b/tests/qtest/fuzz/i440fx_fuzz.c
@@ -39,7 +39,7 @@ enum action_id {
ACTION_MAX
};
-static void i440fx_fuzz_qtest(QTestState *s,
+static void ioport_fuzz_qtest(QTestState *s,
const unsigned char *Data, size_t Size) {
/*
* loop over the Data, breaking it up into actions. each action has an
@@ -84,10 +84,17 @@ static void i440fx_fuzz_qtest(QTestState *s,
flush_events(s);
}
+static void i440fx_fuzz_qtest(QTestState *s,
+ const unsigned char *Data,
+ size_t Size)
+{
+ ioport_fuzz_qtest(s, Data, Size);
+}
+
static void pciconfig_fuzz_qos(QTestState *s, QPCIBus *bus,
const unsigned char *Data, size_t Size) {
/*
- * Same as i440fx_fuzz_qtest, but using QOS. devfn is incorporated into the
+ * Same as ioport_fuzz_qtest, but using QOS. devfn is incorporated into the
* value written over Port IO
*/
struct {
--
2.25.3
- [PULL 0/8] Block patches, Stefan Hajnoczi, 2020/05/19
- [PULL 1/8] tests/fuzz/Makefile: Do not link code using unavailable devices, Stefan Hajnoczi, 2020/05/19
- [PULL 2/8] Makefile: List fuzz targets in 'make help', Stefan Hajnoczi, 2020/05/19
- [PULL 3/8] tests/fuzz: Add missing space in test description, Stefan Hajnoczi, 2020/05/19
- [PULL 4/8] tests/fuzz: Remove unuseful/unused typedefs, Stefan Hajnoczi, 2020/05/19
- [PULL 5/8] tests/fuzz: Extract pciconfig_fuzz_qos() method, Stefan Hajnoczi, 2020/05/19
- [PULL 6/8] tests/fuzz: Extract ioport_fuzz_qtest() method,
Stefan Hajnoczi <=
- [PULL 7/8] aio-posix: don't duplicate fd handler deletion in fdmon_io_uring_destroy(), Stefan Hajnoczi, 2020/05/19
- [PULL 8/8] aio-posix: disable fdmon-io_uring when GSource is used, Stefan Hajnoczi, 2020/05/19
- Re: [PULL 0/8] Block patches, Peter Maydell, 2020/05/19