summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann2021-06-24 12:38:20 +0200
committerPaolo Bonzini2021-07-09 18:20:27 +0200
commitd7795d3cc52fa8c297908912a9541ecd4f810f03 (patch)
tree6993231691049b4c57dcbb1d9f4fbc0cedf27e78 /include
parentmodules: add tracepoints (diff)
downloadqemu-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.h1
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