diff options
author | Marc MarĂ <markmb@redhat.com> | 2015-10-08 17:02:55 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-10-19 15:26:53 +0200 |
commit | a4c0d1deb785611c96a455f65ec032976b00b36f (patch) | |
tree | b8b72b8b03b8a30e36cf0e4e924dd47566627b97 /tests/fw_cfg-test.c | |
parent | c9eae1d4b93695d98fa5306a28b7fb7acc34ae67 (diff) | |
download | qemu-a4c0d1deb785611c96a455f65ec032976b00b36f.zip qemu-a4c0d1deb785611c96a455f65ec032976b00b36f.tar.gz qemu-a4c0d1deb785611c96a455f65ec032976b00b36f.tar.bz2 |
Implement fw_cfg DMA interface
Based on the specifications on docs/specs/fw_cfg.txt
This interface is an addon. The old interface can still be used as usual.
Based on Gerd Hoffman's initial implementation.
Signed-off-by: Marc MarĂ <markmb@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'tests/fw_cfg-test.c')
-rw-r--r-- | tests/fw_cfg-test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/fw_cfg-test.c b/tests/fw_cfg-test.c index 9be78e9..b7d4007 100644 --- a/tests/fw_cfg-test.c +++ b/tests/fw_cfg-test.c @@ -37,7 +37,9 @@ static void test_fw_cfg_signature(void) static void test_fw_cfg_id(void) { - g_assert_cmpint(qfw_cfg_get_u32(fw_cfg, FW_CFG_ID), ==, 1); + uint32_t id = qfw_cfg_get_u32(fw_cfg, FW_CFG_ID); + g_assert((id == 1) || + (id == 3)); } static void test_fw_cfg_uuid(void) |