Function remote_hfence_gvma_vmid

Source
pub fn remote_hfence_gvma_vmid(
    hart_mask: HartMask,
    start_addr: usize,
    size: usize,
    vmid: usize,
) -> SbiRet
Expand description

Execute virtual machine id based HFENCE.GVMA instructions 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 only for the given virtual machine by vmid.

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 codeDescription
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.4.