Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Adjust_Execution_Time
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vmm.inc
 
mov     eax, Time       ; number of milliseconds to adjust time slice
move    ebx, VM         ; VM handle
VMMcall Adjust_Execution_Time
 
The Adjust_Execution_Time service adjusts the amount of execution time a
virtual machine is granted with each time slice. Virtual devices, such as
the virtual COM device, use this service to temporarily boost the priority
of a virtual machine, such as when the virtual machine is receiving an
unusually high number of interrupts.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
Time       Specifies a signed integer value representing the number of
           milliseconds to add or subtract from the current time-slice
           granularity value.
 
VM         Specifies a handle identifying the virtual machine to adjust.
 
Return Value
 
This service has no return value.
 
Comments
 
This service has the same effect on all virtual machines regardless of their
time-slice priority. If the specified virtual machine is not on the
time-slice list, this service returns immediately (does nothing). This
service never forces a nonrunnable virtual machine to execute. A virtual
machine not already in the background cannot be forced to run in the
background by boosting its execution time.
 
This service can increase or decrease the execution time for a virtual
machine. However, decreasing execution time is not recommended because it
defeats the purpose of multitasking. Virtual devices should avoid using this
service.
 
Uses
 
Flags
 
See Also
 
Get_Time_Slice_Granularity, Set_Time_Slice_Granularity