]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: fix QEMU target names for ppc64/mips64el/mipsel hosts
authorPaul Meyer <katexochen0@gmail.com>
Sat, 13 Jun 2026 09:38:02 +0000 (11:38 +0200)
committerPaul Meyer <katexochen0@gmail.com>
Wed, 17 Jun 2026 08:23:47 +0000 (10:23 +0200)
commitef7d64cd09bda6dbbe5b7a5534f41b0dfe78435e
tree9922ade3cc1a7264542330fa0b63775fd5427a82
parent4f6ce566e16ead262f49b0ca18b87b933486cdc6
vmspawn: fix QEMU target names for ppc64/mips64el/mipsel hosts

architecture_to_qemu_table mapped four 64-bit/LE architectures to wrong
qemu-system-<target> names: MIPS64_LE and MIPS_LE both to "mips" (the BE
MIPS32 target), and PPC64/PPC64_LE to "ppc" (32-bit PowerPC). The string
feeds both find_qemu_binary() ("qemu-system-" + name) and the
firmware.json architecture match, so on those hosts vmspawn looked up a
wrong or nonexistent binary and never matched a firmware descriptor. Map
them to the real targets: mips64el, mipsel, and ppc64 (qemu-system-ppc64
runs LE pSeries guests; there is no qemu-system-ppc64le).

Co-developed-by: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
src/vmspawn/vmspawn-util.c