mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +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
@@ -23,6 +23,7 @@ const char *state_str[] = {
|
||||
[VM_CREATED] = "stopped",
|
||||
[VM_STARTED] = "started",
|
||||
[VM_PAUSED] = "paused",
|
||||
[VM_SUSPENDED] = "suspended",
|
||||
[VM_UNTRACKED] = "untracked",
|
||||
};
|
||||
|
||||
@@ -174,7 +175,7 @@ static void _scan_alive_vm(void)
|
||||
vm->state = VM_STARTED;
|
||||
break;
|
||||
case VM_SUSPEND_SUSPEND:
|
||||
vm->state = VM_PAUSED;
|
||||
vm->state = VM_SUSPENDED;
|
||||
break;
|
||||
default:
|
||||
vm->state = VM_STATE_UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user