-
公开(公告)号:US20230229473A1
公开(公告)日:2023-07-20
申请号:US17578365
申请日:2022-01-18
Applicant: VMware, Inc.
Inventor: Timothy MERRIFIELD , Prashant Singh CHOUHAN
IPC: G06F9/455
CPC classification number: G06F9/45558 , G06F2009/45575
Abstract: The performance of a computer system having a virtual machine executing an idling instruction therein is improved by: determining a state for controlling the execution of the idling instruction for a first virtual CPU; when the controlling state is a first state, executing the idling instruction natively in a physical CPU assigned to the first virtual CPU and resuming execution of instructions by the first virtual CPU when the physical CPU wakes up; and when the controlling state is a second state, emulating execution of the idling instruction, the emulated execution including the steps of configuring a wakeup event, descheduling the first virtual CPU, and selecting a second virtual CPU to resume execution of instructions, and in response to the wakeup event, rescheduling the second virtual CPU, performing a task switch from the first to the second virtual CPU, and resuming execution of instructions by the second virtual CPU.