Skip to contentSkip to conversation

Is it possible to boot a riscv32 guest on riscv64 host using KVM?

DISCUSSION Philippe Mathieu-Daudé 2 participants 3 messages Jun 26, 2023 – Jun 27, 2023

lore
Share & tools
lore
#0 lore raw

Hi,

I'm working on a tree-wide accelerator refactor and want to run various configs to be sure I didn't broke anything.

QEMU theoretically supports running a riscv32 guest using KVM on a riscv64 host, however the documentation I'm finding only refers to riscv64 guests:
https://github.com/kvm-riscv/howto/wiki

So I wonder, is this a valid / supported config? If so, do you mind helping me with pointing me to a guest image and its command line?

Thanks,

Phil.

#1 lore raw
Quoted 6 lines · Philippe Mathieu-Daudé

Hi,

I'm working on a tree-wide accelerator refactor and want to run various configs to be sure I didn't broke anything.

Quoted 8 lines

QEMU theoretically supports running a riscv32 guest using KVM on a riscv64 host, however the documentation I'm finding only refers to riscv64 guests:
https://github.com/kvm-riscv/howto/wiki

So I wonder, is this a valid / supported config? If so, do you mind helping me with pointing me to a guest image and its command line?

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.

Regards,
Anup

Quoted 4 lines

Thanks,

Phil.

#2 lore raw
Quoted 13 lines · Anup Patel
Quoted 11 lines · Philippe Mathieu-Daudé

Hi,

I'm working on a tree-wide accelerator refactor and want to run various configs to be sure I didn't broke anything.

QEMU theoretically supports running a riscv32 guest using KVM on a riscv64 host, however the documentation I'm finding only refers to riscv64 guests:
https://github.com/kvm-riscv/howto/wiki

Quoted 6 lines
Quoted 3 lines

So I wonder, is this a valid / supported config? If so, do you mind helping me with pointing me to a guest image and its command line?

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

Good news, less configs to test!

Thank you,

Phil.

Quoted 10 lines

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.

Regards,
Anup

Quoted 4 lines

Thanks,

Phil.