ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

hfence.vvma

T1 riscv alu insn
Hypervisor fence guest virtual address
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 H
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsH

Summary

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.

Syntax / Encoding

hfence.vvma xs1, xs2 | 0010001xxxxxxxxxx000000001110011 (mask=0xfe007fff match=0x22000073)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0010001xxxxxxxxxx0000000011100110xfe007fff / 0x22000073

Operands

NameDescription
xs2bits [24:20]
xs1bits [19:15]

Reference Notes

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.