mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 05:57:33 +00:00
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:
parent
7b34ae84fa
commit
66814d8449
@ -475,12 +475,8 @@ static int acrnctl_do_resume(int argc, char *argv[])
|
|||||||
continue;
|
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) {
|
switch (s->state) {
|
||||||
case VM_STARTED:
|
case VM_PAUSED:
|
||||||
resume_vm(argv[i]);
|
resume_vm(argv[i]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user