This patchset enables DMA interface support for writing fw-cfg files in libqtest. The first patch is just a code refactoring so that fw-cfg directory parsing can be part of a separate helper function. The second patch is the actual patch that introduces two new apis for writing and reading fw-cfg files using DMA interface. The apis are tested by writing a qtest for vmfwupdate. Please see tests/qtest/vmfwupdate-test.c changes in https://gitlab.com/anisinha/qemu/-/commit/4d94a67d1cf29780f136a8bd2c21ff0e57c7b2db To test the code, you can pull in this branch https://gitlab.com/anisinha/qemu/-/commits/fuki-hyperface which has vmfwupdate changes on top of the patches sent in this series.
cc: kra...@redhat.com cc: faro...@suse.de cc: lviv...@redhat.com cc: pbonz...@redhat.com cc: arm...@redhat.com cc: phi...@linaro.org cc: berra...@redhat.com cc: qemu-devel@nongnu.org Ani Sinha (2): libqos/fw_cfg: refactor file directory iteraton to make it more reusable tests/qtest/libqos: add DMA support for writing and reading fw_cfg files tests/qtest/libqos/fw_cfg.c | 201 ++++++++++++++++++++++++++++++++---- tests/qtest/libqos/fw_cfg.h | 6 +- 2 files changed, 184 insertions(+), 23 deletions(-) -- 2.45.2