mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
tools: acrn-manager: Fix acrnctl mistake displaying suspended to paused
When UOS is sleeping, 'acrnctl list' command show it is 'paused', not 'suspended'. That is not correct. Because pausing an UOS means to block its VCPUs immediately, otherwise suspending an UOS means to put it to sleep. Tracked-On: #1910 Acked-by: Yan, Like <like.yan@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
This commit is contained in:
committed by
lijinxia
parent
e1d0f7e432
commit
2f33d1bcf2
@@ -574,7 +574,7 @@ static int acrnctl_do_resume(int argc, char *argv[])
|
||||
printf("No wake up reason, use 0x%x\n", reason);
|
||||
|
||||
switch (s->state) {
|
||||
case VM_PAUSED:
|
||||
case VM_SUSPENDED:
|
||||
resume_vm(argv[1], reason);
|
||||
printf("resume %s reason(0x%x\n", argv[1], reason);
|
||||
break;
|
||||
@@ -627,7 +627,7 @@ static int acrnctl_do_reset(int argc, char *argv[])
|
||||
start_vm(argv[i]);
|
||||
break;
|
||||
case VM_STARTED:
|
||||
case VM_PAUSED:
|
||||
case VM_SUSPENDED:
|
||||
stop_vm(argv[i]);
|
||||
if (wait_vm_stop(argv[i], STOP_TIMEOUT)) {
|
||||
printf("Failed to stop %s in %u sec\n",
|
||||
|
||||
Reference in New Issue
Block a user