Skip to content

Debian aarch64 fixes - #283

Merged
ddiss merged 3 commits into
rapido-linux:masterfrom
ddiss:deb-aarch64-fixes
Oct 25, 2026
Merged

ddiss merged 3 commits into
rapido-linux:masterfrom
ddiss:deb-aarch64-fixes

Conversation

@ddiss

@ddiss ddiss commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator
The following changes since commit ea26b83a97f02a5a24430e3048eab5eab7aaa07e:

  rapido-vm: add test_vm_distro_kconfig_kernel (2026-10-23 17:56:16 +1100)

are available in the Git repository at:

  https://github.com/ddiss/rapido.git deb-aarch64-fixes

for you to fetch changes up to 060debcf77c293fbb2c11ccf8b74bb0b8f18bc97:

  rapido-init: mount sysfs before modprobe (2026-10-24 00:51:53 +1100)

----------------------------------------------------------------
David Disseldorp (3):
      rapido-vm: fix search for debian aarch64 distro kernel
      rapido-vm: fix non-KVM aarch64 QEMU parameters
      rapido-init: mount sysfs before modprobe

 src/bin/rapido-init.rs | 26 +++++++++++++-------------
 src/bin/rapido-vm.rs   |  5 +++--
 2 files changed, 16 insertions(+), 15 deletions(-)

ddiss added 3 commits October 24, 2026 00:23
See note: it may make more sense to change the aarch64 host_prefix
value, but I'd like to check other distros first.

Signed-off-by: David Disseldorp <[email protected]>
The existing gic-version=host and cpu=host params require KVM. According
to https://www.qemu.org/docs/master/system/arm/virt.html , if we use
"max" the it'll default to "host" if KVM is available or otherwise use
sensible defaults.

Signed-off-by: David Disseldorp <[email protected]>
modprobe can now dlopen() compression dependencies if it determines that
they're needed. The dependencies are listed in .note.dlopen ELF
metadata, but decompression can also be done by the kernel.
modprobe checks for kernel decompression support by reading the contents
of /sys/module/compression . This logic breaks under rapido-init as we
don't have sysfs mounted until after modules are loaded, forcing us down
the dlopen() userland decompression path.

Switch the ordering of rapido-init mount and modprobe steps to ensure
that /sys/module/compression is available for modprobe. virtfs/9p is
split out from core FS mounts to ensure 9p modules are loaded first.

We may need to consider parsing .note.dlopen ELF data in future, if
there are distros out there that ship compressed modules without kernel
decompression support.

With this change (and prior commits) selftest is now passing on a VM
running 6.12.113+deb13-cloud-arm64.

Link: rapido-linux#280
Signed-off-by: David Disseldorp <[email protected]>
@ddiss
ddiss merged commit 060debc into rapido-linux:master Oct 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant