On Wed, 19 Jan 2022 at 19:53, Kenneth Adam Miller <kennethadammil...@gmail.com> wrote: > > The source for it isn't available in order that it be compiled to the desired > architecture.
In general kernel modules need to be built not just for the right architecture but even for the specific kernel version you're going to load them into. In theory you could perhaps build QEMU into the native system kernel and have it act as a shim between non-native kernel modules (this has been done for UEFI modules before). But you would (unlike the UEFI case) run into incompatibilities in data structure layouts in memory. In general it would be a lot of work; it is certainly not something QEMU is anywhere near being able to do today. I doubt it's something that either the upstream kernel folks nor upstream QEMU would be interested in either. The best approach would be to get the source for the kernel module. -- PMM