CSR Bit Fields

RISC-V vstopi CSR Register

Address 0xEB0Privilege Hypervisor direct / VS aliasAccess HRO / VSXLENHypervisor and virtualization CSRs

vstopi is a VS top interrupt report CSR.

Field Map

Understand vstopi By Bit Fields

1 key fields
VSXLEN-1:0

VSTOPI

RO

vstopi fields for VS top interrupt; detailed encoding follows the AIA specification.

VSTOPI (bits VSXLEN-1:0) — vstopi fields for VS top interrupt; detailed encoding follows the AIA specification.

What This Field Controls

  • - vstopi fields for VS top interrupt; detailed encoding follows the AIA specification.

Common Values

This field is better understood together with surrounding context than as a fixed memorized enumeration.

Open Official Manual
Official Basis & Search Notes

vstopi is an AIA virtual-interrupt CSR. The separate CSR address is for M/HS-side management; when V=1, guest access to the corresponding supervisor CSR is substituted with VS state unless an extension specifies otherwise.

vstopi address, access class, and width are checked against the official CSR tables: 0xEB0, HRO, VSXLEN.
AIA defines hypervisor virtual-interrupt CSRs that augment hvip for injecting interrupts into VS level.
vstopi is the read-only report CSR for the VS-level top interrupt.
vstopi is read-only; reserved or implementation-defined read values should be interpreted only as the official specification and implementation define them.

What To Check First When Reading This CSR

  • - vstopi's separate CSR address is in the official HRO access class; a VS/VU guest normally reaches VS state through the corresponding supervisor CSR alias.
  • - Before reading it, confirm that the defining extension such as H, AIA, Sstc, Smstateen, or Smcsrind is implemented.

Risk Checks Before Writing

  • - vstopi is read-only; software should not write it.

Put It Back Into A Real Flow

1

Confirm AIA is implemented and whether an IMSIC or relevant guest interrupt file exists.

2

Interpret fields according to AIA definitions for top interrupt, enable, pending, priority, or delivery control.

3

Check mstateen0/hstateen0 access control for the related AIA state.

FAQ

What AIA state does vstopi represent?

vstopi belongs to AIA Hypervisor/VS virtual-interrupt state and is used for VS top interrupt.

Can state-enable CSRs control access to vstopi?

When Smstateen and AIA are implemented, AIA, IMSIC, or CSRIND bits in mstateen0/hstateen0 may control lower-privilege or VM access to related AIA state.