]> git.ipfire.org Git - thirdparty/qemu.git/commit
plugins: Fix physical address calculation for IO regions
authorAaron Lindsay <aaron@os.amperecomputing.com>
Tue, 20 Jul 2021 23:26:58 +0000 (00:26 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 23 Jul 2021 16:22:16 +0000 (17:22 +0100)
commit2da42253ef9af7a9c3a5e9e7fcfb1e7eb84a8bb6
treee7520a14767c86a74de1ced1683d747375017af3
parentc2888a679d376baa2dc36a31e44ddb824f232d9c
plugins: Fix physical address calculation for IO regions

The address calculation for IO regions introduced by

commit 787148bf928a54b5cc86f5b434f9399e9737679c
Author: Aaron Lindsay <aaron@os.amperecomputing.com>
    plugins: Expose physical addresses instead of device offsets

is not always accurate. Use the more correct
MemoryRegionSection.offset_within_address_space.

Signed-off-by: Aaron Lindsay <aaron@os.amperecomputing.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210720195735.3934473-1-aaron@os.amperecomputing.com>
Message-Id: <20210720232703.10650-25-alex.bennee@linaro.org>
plugins/api.c