include vmm.inc
mov ebx, VMHandle
mov edx, VID
mov esi, Flags
mov edi, AssocVMHandle
mov eax, Set_Device_Focus
VMMCall System_Control
Sets the focus of the specified virtual device to the specified virtual machine. The virtual device may modify all general registers and flags.
Value | Meaning |
---|---|
1 | Used by the virtual shell device to determine which virtual machine to set focus for. If this value is given, the AssocVMHandle parameter may specify a virtual machine. |
All other values are reserved.
A virtual device that is instructed to change its focus should take steps, such as disabling I/O trapping, to allow the specified virtual machine to run as fast as possible.
This is one of the few messages that arbitrary virtual devices are permitted to send. Typically, a virtual device sends this message with EDX = ESI = 0, to indicate that all devices should set the focus to the indicated virtual machine.