News for hackers. Stuff that matters.
Re:Libriscv: RISC-V Binary Translation by rwmj on Thursday December 31, 2020 @08:40AM (#25592567)
QEMU's TCG already does all this. It's how qemu is able to run single binaries and whole operating systems from one architecture on any other. https://wiki.qemu.org/Documentation/TCG
Re:Libriscv: RISC-V Binary Translation by fwsgonzo on Thursday December 31, 2020 @09:11AM (#25592800)
Yes, I would not dream of being able to compete with these juggernauts. Also, my use-case is for low overhead, low latency work - so I want to be able to have a VM ready to go in the time it usually takes linux to modify page tables!

So, it's a bit of a weird project in that way. Not your usual emulator. Ultimately it's a hobby project, though.

I actually tried to implement the tiniest KVM machine I could, and it wouldn't start in less than 1ms, which is an eternity for me. I also seem to remember that you need 2 file descriptors at minimum: 1 for the vCPU and the other for the VM itself.