Skip to content

target/riscv: Only build qemu-system-riscv$$ on rv$$ host

Philippe Mathieu-Daudé qemu-devel qemu-riscv 1 version Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2target/riscv: Only unify 'riscv32/64' -> 'riscv' for host cpu in mesonmeson.build+4 -70 replies
2/2target/riscv: Only build KVM guest with same wordsize as hostmeson.build+4 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard HendersonAlistair Francis
SeriesR-b R-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] target/riscv: Only build qemu-system-riscv$$ on rv$$ host

Per Anup Patel in [*]:

Quoted 5 lines

Currently, we only support running rv64 guest on rv64 host and rv32 guest on rv32 host.

In the future, we might support running rv32 guest on rv64 host but as of now we don't see a strong push for it.

Therefore, when only using the KVM accelerator it is pointless to build qemu-system-riscv32 on a rv64 host (or qemu-system-riscv64 on a rv32 host). Restrict meson to only build the correct binary, avoiding to waste ressources building unusable code.

[*] https://lore.kernel.org/qemu-devel/CAAhSdy2JeRHeeoEc1XKQhPO3aDz4YKeyQsPT4S8yKJcYTA+AiQ@mail.gmail.com/

Based-on: <[email protected]> "target/riscv: Allow building without TCG (KVM-only so far)"
https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (2):
target/riscv: Only unify 'riscv32/64' -> 'riscv' for host cpu in meson target/riscv: Only build KVM guest with same wordsize as host

 meson.build | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
Signature · 1 line
2.38.1