Function sbi_rt::remote_hfence_gvma
source · pub fn remote_hfence_gvma(
hart_mask: HartMask,
start_addr: usize,
size: usize
) -> SbiRet
Expand description
Execute HFENCE.GVMA
instructions for all virtual machines on remote harts.
This function instructs the remote harts to execute one or more HFENCE.GVMA
instructions,
covering the range of guest physical addresses between start_addr
and size
for all the guests.
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 does not support hypervisor extension. |
SbiRet::invalid_address() | start_addr or size is not valid. |
This function is defined in RISC-V SBI Specification chapter 8.5.