Expand description
RISC-V Hypervisor Extension Support
This crate provides low-level access to RISC-V hypervisor extension registers. It implements the hypervisor CSRs defined in the RISC-V Hypervisor Extension specification, enabling virtualization support on RISC-V processors.
§Usage
use riscv_h::register::hstatus;
// Read hypervisor status register
let hstatus = hstatus::read();
// Check if virtualization mode is enabled
if hstatus.spv() {
// Handle virtualized context
}
Modules§
- register
- RISC-V hypervisor extension register definitions and access functions RISC-V Hypervisor Extension Registers