HFENCE.VVMA
Hypervisor Fence Virtual Virtual Memory Address
HFENCE.VVMA rs1, rs2
Synchronizes updates to VS-stage address translation data structures.
Encoding
Binary Layout
0010001
31:25
rs2
24:20
rs1
19:15
000000001110011
14:0
Operands
-
rs1
Guest virtual address (x0 for all addresses) -
rs2
Guest ASID (x0 for all ASIDs)
Example
HFENCE.VVMA x10, x0
// Flush TLB entries for address in x10.
Related
More in H
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
HFENCE.VVMA guarantees that previous stores visible to this hart are ordered before the implicit reads it makes for VS-stage address translation (controlled by vsatp) for later instructions, for the virtual machine currently selected by hgatp.VMID. If rs1 is not x0 it names a single guest virtual address; if rs2 is not x0 it names a single guest ASID. Valid only in M-mode or HS-mode; mstatus.TVM and hstatus.VTVM do not cause it to trap.
Operation
Fence(VS-StagePageTable);