]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests/qtest/libqos: add DMA support for writing and reading fw_cfg files
authorAni Sinha <anisinha@redhat.com>
Mon, 20 Jan 2025 04:38:33 +0000 (10:08 +0530)
committerFabiano Rosas <farosas@suse.de>
Mon, 3 Feb 2025 15:15:50 +0000 (12:15 -0300)
commit9c38fea83be147aa0b65eec881a2883089ecac40
tree658e0307292aa67d54d07f6601aefcaf04a33310
parent453b3f3cdc6326ad75a9dedd6bb21c570e7697ef
tests/qtest/libqos: add DMA support for writing and reading fw_cfg files

At present, the libqos/fw_cfg.c library does not support the modern DMA
interface which is required to write to the fw_cfg files. It only uses the IO
interface. Implement read and write methods based on DMA. This will enable
developers to add tests that writes to the fw_cfg file(s). The structure of
the code is taken from edk2 fw_cfg implementation. It has been tested by
writing a qtest that writes to a fw_cfg file.

Signed-off-by: Ani Sinha <anisinha@redhat.com>
Message-ID: <20250120043847.954881-3-anisinha@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/libqos/fw_cfg.c
tests/qtest/libqos/fw_cfg.h