Get_NMI_Handler_Addr


include vmm.inc

VMMcall Get_NMI_Handler_Addr

mov     [NMI], esi          ; offset to current NMI handler

Returns the address of the current Non-Maskable Interrupt (NMI) handler. Uses ESI, Flags.

If a virtual device needs to hook the Non-Maskable Interrupt it must first call this service to get and save the original NMI handler address. The virtual device can then install the new NMI handler by using the Set_NMI_Handler_Addr service. The new handler should create an NMI handler chain by passing execution to the original NMI handler whenever it does not process the NMI.

See also Set_NMI_Handler_Addr