mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
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>
This commit is contained in:
parent
819b8b13c1
commit
d7795d3cc5
3 changed files with 33 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue