guest_intr_assign_auto()

Automically pick an interrupt and assign it to the guest

Synopsis:

#include <qvm/guest.h>
void guest_intr_assign_auto(guest_intr *gip,
                            guest_intr_assign_type_t type)

Arguments:

gip
If non-NULL, this field points to the interrupt structure to fill in.
type
The type of interrupt assignment (see guest_intr_assign_type_t).

Description:

Use this function to assign interrupts when the chosen number is discoverable by the guest (for instance, it is written in a firmware table, or made available in a register of the device). This function is expected to be called from the VDEV_CTRL_ASSIGN callback when the user didn't specify an interrupt using the intr option.

Page updated: