It will run RustSBI-QEMU with a test kernel. The test kernel will test all SBI functions,
its command emulation and other features. If it succeeds, there would be output like:
running 1 test
Finished dev [unoptimized + debuginfo] target(s) in 0.14s
Compiling test-kernel v0.1.0 (D:\RustProjects\rustsbi-qemu\test-kernel)
Finished dev [unoptimized + debuginfo] target(s) in 0.61s
test run_test_kernel ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.31s
Notes
How to enable hypervisor H extension on QEMU?
You should use these following line of parameters:
command.args(&["-cpu", "rv64,x-h=true"]);
… to enable H extension on QEMU software.
License
This project is licensed under Mulan PSL v2.
Copyright (c) 2021 Wuxiang Zhi Feng Team
RustSBI-QEMU is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
关于
QEMU platform SBI support implementation, using RustSBI
QEMU support using RustSBI
Compile and run with:
When running
cargo qemu
, the test kernel will build and run. Expected output should be:Run test kernel
Requirements
cargo-binutils
andllvm-tools-preview
are neededRun
Run with:
It will run RustSBI-QEMU with a test kernel. The test kernel will test all SBI functions, its command emulation and other features. If it succeeds, there would be output like:
Notes
You should use these following line of parameters:
… to enable H extension on QEMU software.
License
This project is licensed under Mulan PSL v2.