From 5e65700089755718805fb16ecac9c1dfa2b4ece0 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 03:07:01 +0100 Subject: [PATCH] Use the Vinix hybrid EFI image layout and GICv3 for ARM guest tests --- tests/busybox/boot.v | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/busybox/boot.v b/tests/busybox/boot.v index e7b85f2..4b6862d 100644 --- a/tests/busybox/boot.v +++ b/tests/busybox/boot.v @@ -72,14 +72,15 @@ fn boot_image(root string, iso string, output string, mode string, fixture strin ['boot/limine-bios.sys', 'boot/limine-bios-cd.bin'] } run(['bsdtar', '-xf', iso, '-C', os.dir(boot), 'boot/vinix', ...boot_files])! - os.write_file(os.join_path(boot, 'limine.conf'), 'timeout: 0\nserial: yes\n/BusyBox\n' + + os.write_file(os.join_path(boot, 'limine.conf'), 'timeout: 0\nserial: yes\nverbose: yes\n/BusyBox\n' + ' protocol: limine\n kernel_path: boot():/boot/vinix\n resolution: 1024x768x32\n' + ' kaslr: no\n module_path: boot():/boot/initramfs.tar.gz\n cmdline: vinix.disk=live\n')! run(['tar', '--format=ustar', '--owner=0', '--group=0', '-czf', os.join_path(boot, 'initramfs.tar.gz'), '-C', root, '.', '-C', additions, './etc', './' + helper])! test_iso := os.join_path(output, if shell { 'busybox-shell.iso' } else { 'busybox.iso' }) cd_boot := if arm { - ['-e', 'boot/limine-uefi-cd.bin', '-no-emul-boot'] + ['-J', '--efi-boot', 'boot/limine-uefi-cd.bin', '-efi-boot-part', '--efi-boot-image', + '--protective-msdos-label'] } else { ['-b', 'boot/limine-bios-cd.bin', '-no-emul-boot', '-boot-load-size', '4', '-boot-info-table'] } @@ -93,7 +94,7 @@ fn boot_image(root string, iso string, output string, mode string, fixture strin code := os.getenv('AARCH64_EFI_CODE') vars := os.join_path(output, 'vars.fd') os.cp(os.getenv('AARCH64_EFI_VARS'), vars)! - ['qemu-system-aarch64', '-machine', 'virt', '-device', 'ramfb', '-drive', + ['qemu-system-aarch64', '-machine', 'virt,gic-version=3', '-device', 'ramfb', '-drive', 'if=pflash,format=raw,readonly=on,file=' + code, '-drive', 'if=pflash,format=raw,file=' + vars, '-device', 'virtio-scsi-pci,id=scsi0', '-drive', 'if=none,id=cd0,media=cdrom,readonly=on,file=' + test_iso, '-device', -- 2.56.1