Skip to main content

## hinval_gvma

# Function hinval_gvma

Source

    pub unsafe fn hinval_gvma(gaddr: usize, vmid: usize)

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

Invalidate hypervisor translation cache for guest physical address and virtual machine

This instruction invalidates any address-translation cache entries that an `HFENCE.GVMA` instruction with the same values of `gaddr` and `vmid` would invalidate.

This fence specifies a single guest physical address, shifted right by 2 bits, and a single virtual machine by virtual machine identifier (VMID).