~/bend-docscommunity

src/arm64/irqroute.bend checks

raw source on the hub · import 0x2cb44898b57f05c48f38583063e077bf/src/arm64/irqroute.bend as Irqroute

2 imports
import Base
import ../lib/u64.bend as U

Definitions

def Route.none source · line 27 · raw

U32

The cpu that interprets an effect outside any vCPU exit (host/main.bend passes it for the host's events).

def Route.first_spi source · line 31 · raw

U32

The first shared peripheral interrupt.

def Route.spi_target source · line 34 · raw

@spi:Bool -> @+cpu:U32 -> Maybe<&2, U32>

def Route.target source · line 43 · raw

@+cpu:U32 -> @+intid:U32 -> @level:Bool -> Maybe<&2, U32>

The vCPU an interrupt raised by an exit of cpu is routed to, if any: cpu itself, for an SPI raised high from a vCPU's exit.

def Route.reg source · line 51 · raw

@intid:U32 -> U32

The distributor offset of GICD_IROUTER<intid> (0x6000 + 8 * intid).

def Route.irouter source · line 56 · raw

@cpu:U32 -> 0x2cb44898b57f05c48f38583063e077bf/src/lib/u64.U64

GICD_IROUTER's value naming vCPU cpu: Aff0 is the vCPU's index, as its MPIDR says (host/hvf.c), Interrupt_Routing_Mode 0 (that one PE).