core::arch::riscv64

Function hinval_gvma_gaddr

source
pub unsafe fn hinval_gvma_gaddr(gaddr: 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

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; the physical address should be shifted right by 2 bits.