include vpicd.inc mov eax, IRQHand ; IRQ handle mov ebx, VM ; current VM handle call VID_Virt_Int_Proc |
The VID_Virt_Int_Proc procedure handles virtual interrupts for a virtual device. The system calls the procedure whenever a simulated interrupt occurs. The procedure is useful for implementing critical sections around a simulated hardware interrupt.
The system disables interrupts before calling this procedure. The procedure can re-enable interrupts if necessary.
IRQHand
Specifies the handle identifying the interrupt request.
VM
Specifies the handle identifying the current virtual machine.
This procedure has no return value.
A virtual device requests a virtual interrupt by using the VPICD_Set_Int_Request service. Once set, the system simulates the interrupt at a convenient point in time. The call to this procedure signals that the simulated interrupt is underway, and can no longer be canceled using the VPICD_Clear_Int_Request service.
A virtual device that uses this procedure usually also uses the VID_Virt_IRET_Proc procedure to detect the end of the simulated interrupt.
This procedure may modify the EAX, EBX, ECX, EDX, ESI, and Flags registers.