tools: fix resuming vm issue in acrnctl

This patch changes vm resuming condition from VM_STARTED to VM_PAUSED

Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Reviewed-by: Yuhong Tao <yuhong.tao@intel.com>
Reviewed-by: Like Yan <like.yan@intel.com>
This commit is contained in:
Yuan Liu 2018-07-31 09:25:19 +00:00 committed by lijinxia
parent 7b34ae84fa
commit 66814d8449
1 changed files with 1 additions and 5 deletions

View File

@ -475,12 +475,8 @@ static int acrnctl_do_resume(int argc, char *argv[])
continue;
}
/* Per current implemention, we can't know if vm is in suspended
state. Send reume cmd to acrn-dm when VM_STARTED and will
correct it later when we have a way to check if vm has been
suspended */
switch (s->state) {
case VM_STARTED:
case VM_PAUSED:
resume_vm(argv[i]);
break;
default: