include vmm.inc
mov ebx, VM ; VM handle
mov edx, Port ; I/O port number
VMMCall Disable_Local_Trapping
Disables I/O port trapping for the specified I/O port (I/O works directly with hardware and is not intercepted). This applies only to the specified virtual machine. Uses Flags.
This service must not be used unless an I/O callback procedure has been installed for the given port using the Install_IO_Handler or Install_Mult_IO_Handlers service during initialization. In particular, you should not attempt to alter the port trapping state of a port for which you did not personally install an I/O handler. Altering the port trapping state of a port owned by another virtual device driver may cause that other driver to get confused.
Enable_Local_Trapping, Install_IO_Handler, Install_Mult_IO_Handlers