diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-06-24 12:38:20 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-09 18:20:27 +0200 |
commit | d7795d3cc52fa8c297908912a9541ecd4f810f03 (patch) | |
tree | 6993231691049b4c57dcbb1d9f4fbc0cedf27e78 /softmmu | |
parent | 819b8b13c1bc48080f4ca526c6e12d58a27ea887 (diff) | |
download | qemu-d7795d3cc52fa8c297908912a9541ecd4f810f03.zip qemu-d7795d3cc52fa8c297908912a9541ecd4f810f03.tar.gz qemu-d7795d3cc52fa8c297908912a9541ecd4f810f03.tar.bz2 |
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 'softmmu')
-rw-r--r-- | softmmu/vl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c index 190b71a..2004d57 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -126,6 +126,8 @@ #include "sysemu/iothread.h" #include "qemu/guest-random.h" +#include "config-host.h" + #define MAX_VIRTIO_CONSOLES 1 typedef struct BlockdevOptionsQueueEntry { @@ -2740,6 +2742,7 @@ void qemu_init(int argc, char **argv, char **envp) #ifdef CONFIG_MODULES module_init_info(qemu_modinfo); + module_allow_arch(TARGET_NAME); #endif qemu_init_subsystems(); |