mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Implement VM pause
In order to pause a VM, we signal all the vCPU threads to get them out of vmx non-root. Once out, the vCPU thread will check for a an atomic pause boolean. If it's set to true, then the thread will park until being resumed. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
80c3fd922a
commit
4ac0cb9cff
@@ -80,6 +80,21 @@ paths:
|
||||
description: The VM instance could not boot because it is not created yet
|
||||
content: {}
|
||||
|
||||
/vm.pause:
|
||||
put:
|
||||
summary: Pause a previously booted VM instance.
|
||||
operationId: pauseVM
|
||||
responses:
|
||||
201:
|
||||
description: The VM instance successfully paused.
|
||||
content: {}
|
||||
404:
|
||||
description: The VM instance could not pause because it is not created yet
|
||||
content: {}
|
||||
405:
|
||||
description: The VM instance could not pause because it is not booted.
|
||||
content: {}
|
||||
|
||||
/vm.shutdown:
|
||||
put:
|
||||
summary: Shut the VM instance down.
|
||||
|
||||
Reference in New Issue
Block a user