[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] meson: introduce modules_arch
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH 1/2] meson: introduce modules_arch |
Date: |
Fri, 17 Sep 2021 09:14:04 +0200 |
Hi,
> This variable keeps track of all modules enabled for a target
> architecture. This will be used in modinfo to refine the
> architectures that can really load the .so to avoid errors.
I think this is the wrong approach. The reason why modules are
not loading is typically *not* the architecture, but a feature
or subsystem the device needs not being compiled in. Often the
subsystem is a bus (pci, usb, ccw), but there are also other
cases (virtio, vga).
We can stick that into modinfo, simliar to module_dep() but for bits
provided by core qemu instead of other modules. i.e. add something
along the lines of ...
module_need(BUS_PCI);
... to the modules, store that in modinfo and check it before trying
to load.
That would also allow to remove hacks like commit 2dd9d8cfb4f3 ("s390x:
add have_virtio_ccw")
take care,
Gerd
- [PATCH 0/2] modules: Improve modinfo.c architecture support, Jose R. Ziviani, 2021/09/16
- [PATCH 1/2] meson: introduce modules_arch, Jose R. Ziviani, 2021/09/16
- Re: [PATCH 1/2] meson: introduce modules_arch,
Gerd Hoffmann <=
- Re: [PATCH 1/2] meson: introduce modules_arch, Jose R. Ziviani, 2021/09/17
- Re: [PATCH 1/2] meson: introduce modules_arch, Gerd Hoffmann, 2021/09/20
- Re: [PATCH 1/2] meson: introduce modules_arch, Jose R. Ziviani, 2021/09/20
- Re: [PATCH 1/2] meson: introduce modules_arch, Paolo Bonzini, 2021/09/20
- Re: [PATCH 1/2] meson: introduce modules_arch, Jose R. Ziviani, 2021/09/21
- Re: [PATCH 1/2] meson: introduce modules_arch, Paolo Bonzini, 2021/09/23
- Re: [PATCH 1/2] meson: introduce modules_arch, Gerd Hoffmann, 2021/09/21
- Re: [PATCH 1/2] meson: introduce modules_arch, Jose R. Ziviani, 2021/09/21
- Re: [PATCH 1/2] meson: introduce modules_arch, Gerd Hoffmann, 2021/09/21
[PATCH 2/2] modules: use a list of supported arch for each module, Jose R. Ziviani, 2021/09/16