include vpicd.inc mov eax, IRQHand ; IRQ handle mov ebx, VMId ; current VM handle mov ecx, Mask ; zero if unmasking IRQ, nonzero if masking call VID_Mask_Change_Proc |
The VID_Mask_Change_Proc procedure processes attempts to mask or unmask the specified IRQ. The system calls this procedure whenever a virtual machine attempts to mask or unmask an interrupt.
The system disables interrupts before calling this procedure. The procedure can re-enable interrupts if necessary.
IRQHand
Specifies the handle for the interrupt request.
VMId
Specifies the handle of the current virtual machine.
Mask
Specifies whether the IRQ is being masked or unmasked. This parameter is nonzero if the IRQ is being masked, and is zero if it is being masked.
This procedure has no return value.
A virtual device typically uses this procedure to detect contention for a device. The default interrupt routines use this callback to detect conflicts with nonglobal interrupts.
This procedure may modify the EAX, EBX, ECX, EDX, ESI, and Flags registers.