qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

tests/fuzz: Extract ioport_fuzz_qtest() method

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é <philmd@redhat.com>
Message-id: 20200514143433.18569-7-philmd@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>

authored by

Philippe Mathieu-Daudé and committed by
Stefan Hajnoczi
6fb5f084 84cb0a6d

+9 -2
+9 -2
tests/qtest/fuzz/i440fx_fuzz.c
··· 39 39 ACTION_MAX 40 40 }; 41 41 42 - static void i440fx_fuzz_qtest(QTestState *s, 42 + static void ioport_fuzz_qtest(QTestState *s, 43 43 const unsigned char *Data, size_t Size) { 44 44 /* 45 45 * loop over the Data, breaking it up into actions. each action has an ··· 84 84 flush_events(s); 85 85 } 86 86 87 + static void i440fx_fuzz_qtest(QTestState *s, 88 + const unsigned char *Data, 89 + size_t Size) 90 + { 91 + ioport_fuzz_qtest(s, Data, Size); 92 + } 93 + 87 94 static void pciconfig_fuzz_qos(QTestState *s, QPCIBus *bus, 88 95 const unsigned char *Data, size_t Size) { 89 96 /* 90 - * Same as i440fx_fuzz_qtest, but using QOS. devfn is incorporated into the 97 + * Same as ioport_fuzz_qtest, but using QOS. devfn is incorporated into the 91 98 * value written over Port IO 92 99 */ 93 100 struct {