Skip to main content

external_interrupt_info

Function external_interrupt_info 

Source
pub const fn external_interrupt_info(vector: u8) -> u32
Expand description

Encodes the “VM-entry interruption information” field to inject an external interrupt of vector vector at the next guest entry.

The vector must fit in 8 bits; the caller validates the range. The function is pure so that it can be tested on the host.