pub fn remote_hfence_vvma(
hart_mask: HartMask,
start_addr: usize,
size: usize,
) -> SbiRet
Expand description
Execute HFENCE.VVMA
for all address spaces in the current virtual machine on remote harts.
This function instructs the remote harts to execute one or more HFENCE.VVMA
instructions,
covering the range of guest virtual addresses between start_addr
and size
for current virtual machine (by vmid
in hgatp
CSR) of calling hart.
This function call is only valid on harts implementing the RISC-V hypervisor extension.
§Return value
The possible return error codes returned in SbiRet.error
are shown in the table below:
Return code | Description |
---|---|
SbiRet::success() | A remote fence was sent to all the targeted harts successfully. |
SbiRet::not_supported() | This function is not supported as it is not implemented or one of the target hart doesn’t support hypervisor extension. |
SbiRet::invalid_address() | start_addr or size is not valid. |
This function is defined in RISC-V SBI Specification chapter 8.7.