]> git.proxmox.com Git - mirror_qemu.git/commit - util/module.c
modules: check arch and block load on mismatch
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Jun 2021 10:38:20 +0000 (12:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Jul 2021 16:20:27 +0000 (18:20 +0200)
commitd7795d3cc52fa8c297908912a9541ecd4f810f03
tree6993231691049b4c57dcbb1d9f4fbc0cedf27e78
parent819b8b13c1bc48080f4ca526c6e12d58a27ea887
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>
include/qemu/module.h
softmmu/vl.c
util/module.c