]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg plugins: expose an API version concept
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 4 Nov 2019 13:18:36 +0000 (13:18 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 12 Nov 2019 14:32:55 +0000 (14:32 +0000)
commit3fb356cc86461a14450802e14fa79e8436dbbf31
tree1fa66d329a0031fcdc7b7ac7117bdf921236a1d8
parent05273a43af5f9e71152ad1b877bc3a898857e989
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>
include/qemu/qemu-plugin.h
plugins/loader.c
plugins/plugin.h
tests/plugin/bb.c
tests/plugin/empty.c
tests/plugin/hotblocks.c
tests/plugin/hotpages.c
tests/plugin/howvec.c
tests/plugin/insn.c
tests/plugin/mem.c