Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
VID_Virt_Int_Proc
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
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.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
IRQHand    Specifies the handle identifying the interrupt request.
 
VM         Specifies the handle identifying the current virtual machine.
 
Return Value
 
This procedure has no return value.
 
Comments
 
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 EAX, EBX, ECX, EDX, ESI, and Flags.
 
See Also
 
VID_IRET_Proc, VPICD_IRQ_Descriptor