Webcentive RISC-V Reference

hfence.vvma

Hypervisor fence guest virtual address

Extension
H
XLEN
RV32 and RV64
Assembly (riscv-unified-db)
hfence.vvma xs1, xs2
Length
32-bit

Encoding

31252420191514121176210
0010001rs2rs1000000001110011

Match 0x22000073, mask 0xfe007fff. Source: hfence.vvma 11..7=0 rs1 rs2 31..25=0x11 14..12=0 6..2=0x1C 1..0=3 in riscv-opcodes/extensions/rv_h.

FieldBitsriscv-opcodes name
rs224:20rs2
rs119:15rs1

Description

Invalidates any address-translation cache entries that a subsequent implicit memory access to guest virtual memory may use. The instruction applies to guest virtual addresses within the range specified by xs1 and xs2, for all address spaces if xs2=0, or for the address space identified by the ASID in xs2 otherwise. Only entries for the current virtual machine (as identified by hgatp.VMID) are affected.

Description from riscv-unified-db, reformatted.

Specification and related pages