modules: check arch on qom lookup
commitab0cfc3dcbe763ae615a284dbc68997af933ff9c
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Jun 2021 10:38:21 +0000 (24 12:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Jul 2021 16:20:27 +0000 (9 18:20 +0200)
tree1507a7e6d5fa7cdd06869c9fd746dbe7032e89f0
parentd7795d3cc52fa8c297908912a9541ecd4f810f03
modules: check arch on qom lookup

With target-specific modules we can have multiple modules implementing
the same object.  Therefore we have to check the target arch on lookup
to find the correct module.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jose R. Ziviani <jziviani@suse.de>
Message-Id: <20210624103836.2382472-20-kraxel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/module.c