Re: [Qemu-devel] [PATCH v3 20/22] fuzz: add i440fx fuzz targets

2019-09-19 Thread Stefan Hajnoczi
On Wed, Sep 18, 2019 at 11:19:47PM +, Oleinik, Alexander wrote: > +static void i440fx_fuzz_qtest(QTestState *s, > +const unsigned char *Data, size_t Size) { > + > +typedef struct QTestFuzzAction { > +uint8_t id; > +uint8_t addr; > +uint32_t value; > +} QT

[Qemu-devel] [PATCH v3 20/22] fuzz: add i440fx fuzz targets

2019-09-18 Thread Oleinik, Alexander
These three targets should simply fuzz reads/writes to a couple ioports, but they mostly serve as examples of different ways to write targets. They demonstrate using qtest and qos for fuzzing, as well as using rebooting and forking to reset state, or not resetting it at all. Signed-off-by: Alexand