tcg plugins: expose an API version concept
This is a very simple versioning API which allows the plugin infrastructure to check the API a plugin was built against. We also expose a min/cur API version to the plugin via the info block in case it wants to avoid using old deprecated APIs in the future. Signed-off-by:Alex Bennée <alex.bennee@linaro.org> Reviewed-by:
Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by:
Peter Maydell <peter.maydell@linaro.org> Reviewed-by:
Robert Foley <robert.foley@linaro.org>
Showing
- include/qemu/qemu-plugin.h 19 additions, 0 deletionsinclude/qemu/qemu-plugin.h
- plugins/loader.c 21 additions, 0 deletionsplugins/loader.c
- plugins/plugin.h 2 additions, 0 deletionsplugins/plugin.h
- tests/plugin/bb.c 2 additions, 0 deletionstests/plugin/bb.c
- tests/plugin/empty.c 2 additions, 0 deletionstests/plugin/empty.c
- tests/plugin/hotblocks.c 2 additions, 0 deletionstests/plugin/hotblocks.c
- tests/plugin/hotpages.c 2 additions, 0 deletionstests/plugin/hotpages.c
- tests/plugin/howvec.c 2 additions, 0 deletionstests/plugin/howvec.c
- tests/plugin/insn.c 2 additions, 0 deletionstests/plugin/insn.c
- tests/plugin/mem.c 2 additions, 0 deletionstests/plugin/mem.c
Please register or sign in to comment