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:
Minggui Cao 2019-09-09 15:31:29 +08:00 committed by ACRN System Integration
parent 8578125fed
commit 3d23c90a8e
1 changed files with 1 additions and 1 deletions

View File

@ -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 {