mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 04:43:54 -06:00
plugins: Expose physical addresses instead of device offsets
This allows plugins to query for full virtual-to-physical address translation for a given `qemu_plugin_hwaddr` and stops exposing the offset within the device itself. As this change breaks the API, QEMU_PLUGIN_VERSION is incremented. Signed-off-by: Aaron Lindsay <aaron@os.amperecomputing.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20210309202802.211756-1-aaron@os.amperecomputing.com> Message-Id: <20210312172821.31647-3-alex.bennee@linaro.org>
This commit is contained in:
parent
279d0a5b1e
commit
787148bf92
4 changed files with 39 additions and 14 deletions
|
@ -122,7 +122,7 @@ static void vcpu_haddr(unsigned int cpu_index, qemu_plugin_meminfo_t meminfo,
|
|||
}
|
||||
} else {
|
||||
if (hwaddr && !qemu_plugin_hwaddr_is_io(hwaddr)) {
|
||||
page = (uint64_t) qemu_plugin_hwaddr_device_offset(hwaddr);
|
||||
page = (uint64_t) qemu_plugin_hwaddr_phys_addr(hwaddr);
|
||||
} else {
|
||||
page = vaddr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue