DM: to avoid RTVM shutdown forcely by acrn-dm
if RTVM, now we assume it can't be shutdown forcely by SOS, so add check condition to avoid that. Tracked-On: #3564 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
parent
8578125fed
commit
3d23c90a8e
|
@ -352,7 +352,7 @@ static void handle_stop(struct mngr_msg *msg, int client_fd, void *param)
|
|||
ack.msgid = msg->msgid;
|
||||
ack.timestamp = msg->timestamp;
|
||||
|
||||
if (msg->data.acrnd_stop.force) {
|
||||
if (msg->data.acrnd_stop.force && !is_rtvm) {
|
||||
vm_set_suspend_mode(VM_SUSPEND_POWEROFF);
|
||||
ack.data.err = 0;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue