rustsbi-qemu
rustsbi-qemu copied to clipboard
QEMU platform SBI support implementation, using RustSBI
- fix: 改正中断转发的实现,现在 ssoft 和 stimer 都正常响应 - refactor: 用 sbi-testing 测试 - refactor: 实现一些访问 clint 的裸函数,现在 m 态代理 s 中断不需要切换上下文 Signed-off-by: YdrMaster
add penglai enclave marked as draft: 功能还没完成 - [ ] 蓬莱主机侧接口 - [ ] 飞地侧接口 - [ ] 运行环境 - [ ] 在test-kernel里测试蓬莱运行时
目前rustsbi-qemu在收到M态软件中断时,只会判断上一个HSM命令,如果不存在就直接 [panic](https://github.com/rustsbi/rustsbi-qemu/blob/main/rustsbi-qemu/src/execute.rs#L94-L96) ,导致S态软件无论是通过SBI s-IPI扩展还是直接访问Clint都无法使用IPI功能(除非是ACLINT)。 一个最直接的hack就是发现没有HSM命令时,把软件中断直接转发给S态;不过这样可能处理不了rfence扩展,应该得再加一套或者两套命令接口。
Is possible that the test suite can support binary input, and go through the know cases under qemu? e.g. The sbi binary like 'fw_jump.bin' and 'fw_jump.elf' can be generated in...
I'm currently using `qemu 7.0.0` for risc-v system emulation. However, the current version of device tree compiler might caught problem. If we use `git clone` to get the qemu source...
The error infos is as follows: ```shell ❯ cargo make Finished `release` profile [optimized] target(s) in 0.04s Running `target/release/xtask make` Compiling rustsbi-qemu v0.2.0-alpha.3 (/Users/logeable/workstation/repos/rustsbi-qemu/rustsbi-qemu) error: the feature `asm_const` has been...