diff options
author | Gerd Hoffmann | 2021-06-24 12:38:20 +0200 |
---|---|---|
committer | Paolo Bonzini | 2021-07-09 18:20:27 +0200 |
commit | d7795d3cc52fa8c297908912a9541ecd4f810f03 (patch) | |
tree | 6993231691049b4c57dcbb1d9f4fbc0cedf27e78 /include | |
parent | modules: add tracepoints (diff) | |
download | qemu-d7795d3cc52fa8c297908912a9541ecd4f810f03.tar.gz qemu-d7795d3cc52fa8c297908912a9541ecd4f810f03.tar.xz qemu-d7795d3cc52fa8c297908912a9541ecd4f810f03.zip |
modules: check arch and block load on mismatch
Add module_allow_arch() to set the target architecture.
In case a module is limited to some arch verify arches
match and ignore the module if not.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jose R. Ziviani <jziviani@suse.de>
Message-Id: <20210624103836.2382472-19-kraxel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/module.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/module.h b/include/qemu/module.h index 9cd305de59..3deac0078b 100644 --- a/include/qemu/module.h +++ b/include/qemu/module.h @@ -72,6 +72,7 @@ void module_call_init(module_init_type type); bool module_load_one(const char *prefix, const char *lib_name, bool mayfail); void module_load_qom_one(const char *type); void module_load_qom_all(void); +void module_allow_arch(const char *arch); /** * DOC: module info annotation macros |