Testing the new MSIs added by the draft Advanced Interrupt Architecture (AIA) specification.
First blog post: 30-June-2022
Second blog post: 26-July-2022
The MSI controller has been added to the virt
machine to QEMU. This may require you to upgrade your QEMU.
You need to create a file to attach as the "hard drive". This can be done one of several ways:
fallocate -l8M hdd.dsk
or
dd if=/dev/urandom of=hdd.dsk bs=1M count=8
Get rust here: rustup.rs
Make sure the riscv32i-unknown-none-elf target is added.
rustup target add riscv32i-unknown-none-elf
The run.sh
script controls the parameters to QEMU. This is linked to cargo via .cargo/config
Run the test by using cargo:
cargo run
or
cargo run --release