Function sbi_rt::remote_hfence_vvma_asid
source · pub fn remote_hfence_vvma_asid(
hart_mask: HartMask,
start_addr: usize,
size: usize,
asid: usize
) -> SbiRet
Expand description
Execute address space based HFENCE.VVMA
for 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 the given
address space by asid
and 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 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.6.