Show HN: Miralis – a RISC-V virtual firmware monitor Miralis is a RISC-V firmware that virtualizes RISC-V firmware. In other words, it runs firmware in user-space (M-mode software in U-mode). The fact that this is even possible is interesting: indeed, not all ISAs are virtualizable, and the same applies for their firmware mode. It all boils down to the virtualization requirements [1], which is a great read if you haven't come across it yet. Arm's EL3 cannot be virtualized, for instance, because some instructions, such as `cpsid`, are sensitive but do not trap (`cpsid` is a nop in user-space). If you have a VisionFive 2 or a HiFive Premier P550, you can try it out, the instructions are in the documentation [2, 3]. Of course, it runs on QEMU too. As Miralis is a research project, we have also been using it as a vehicle to explore other research ideas, such as automated verification of hypervisors [4]. For instance, we verified instruction emulation by comparing Miralis' implementation with the reference RISC-V executable specification [5], which we translated to Rust. It has been fun working on Miralis, I hope you'll find it interesting too! [1]: https://ift.tt/9uFyanY [2]: https://ift.tt/Ots5GxI... [3]: https://ift.tt/xNRluXW... [4]: https://ift.tt/asi7yQd... [5]: https://ift.tt/q5cBYa2 https://ift.tt/3dCYuPS May 10, 2025 at 11:28PM
Show HN: Miralis – a RISC-V virtual firmware monitor https://ift.tt/nb4kiCD
Related Articles
Show HN: Upload, annotate, share Zoom recordings (for remote teams) https://ift.tt/34pddunShow HN: Upload, annotate, share Zoom recordings (for remote teams) ht… Read More
Show HN: Mantel-top computerized musical chimes with MicroPython on an ESP-32 https://ift.tt/3aA8ucWShow HN: Mantel-top computerized musical chimes with MicroPython on an… Read More
Show HN: StumblingOn – Randomly find indie websites – recreating StumbleUpon https://ift.tt/3aipgxnShow HN: StumblingOn – Randomly find indie websites – recreating Stumb… Read More
Show HN: Make your own help center (Intercom UI) with Airtable https://ift.tt/38lUVv7Show HN: Make your own help center (Intercom UI) with Airtable Hello N… Read More
Show HN: Cyberpunk city, Urban fantasy art, Rainy city https://ift.tt/3qTIxL8Show HN: Cyberpunk city, Urban fantasy art, Rainy city https://ift.tt/… Read More
Show HN: Factonaut. Collect historical events and create chronological overviews https://ift.tt/348x3KeShow HN: Factonaut. Collect historical events and create chronological… Read More
Show HN: Curated List of Online Learning https://ift.tt/3gI0BDrShow HN: Curated List of Online Learning Hi HN, The discussion pops up… Read More
Show HN: Text-to-Podcast – Real Voices https://ift.tt/2JRdmQjShow HN: Text-to-Podcast – Real Voices https://ift.tt/37cNmro December… Read More
0 Comments: