Skip to main content

## hfence_vvma_vaddr

# Function hfence_vvma_vaddr

Source

    pub unsafe fn hfence_vvma_vaddr(vaddr: usize)

🔬This is a nightly-only experimental API. (`riscv_ext_intrinsics` #114544)
Available on RISC-V RV32 only.
Expand description

Hypervisor memory management fence for given guest virtual address

Guarantees that any previous stores already visible to the current hart are ordered before all implicit reads by that hart done for VS-stage address translation for instructions that:

- are subsequent to the `HFENCE.VVMA`, and
- execute when `hgatp.VMID` has the same setting as it did when `HFENCE.VVMA` executed.

This fence specifies a single guest virtual address.