plugins: implement helpers for resolving hwaddr
commit235537fa7347a151ebd7a755e81819a52b3b2195
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 19 Jun 2019 19:20:08 +0000 (19 20:20 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 28 Oct 2019 15:12:38 +0000 (28 15:12 +0000)
tree275e9aa873062f61238a10eb90f7d54f1e4a57f8
parente6d86bed50d20101c565e149c33e07a5cc764c72
plugins: implement helpers for resolving hwaddr

We need to keep a local per-cpu copy of the data as other threads may
be running. Currently we can provide insight as to if the access was
IO or not and give the offset into a given device (usually the main
RAMBlock). We store enough information to get details such as the
MemoryRegion which might be useful in later expansions to the API.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
include/qemu/plugin-memory.h [new file with mode: 0644]
include/qemu/qemu-plugin.h
plugins/api.c