mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33: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
|
@ -201,7 +201,7 @@ static void vcpu_haddr(unsigned int cpu_index, qemu_plugin_meminfo_t meminfo,
|
|||
return;
|
||||
} else {
|
||||
const char *name = qemu_plugin_hwaddr_device_name(hwaddr);
|
||||
uint64_t off = qemu_plugin_hwaddr_device_offset(hwaddr);
|
||||
uint64_t off = qemu_plugin_hwaddr_phys_addr(hwaddr);
|
||||
bool is_write = qemu_plugin_mem_is_store(meminfo);
|
||||
DeviceCounts *counts;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue