Skip to content

Commit 3d23c90

Browse files
mgcaoacrnsi
authored andcommitted
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>
1 parent 8578125 commit 3d23c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devicemodel/core/monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ static void handle_stop(struct mngr_msg *msg, int client_fd, void *param)
352352
ack.msgid = msg->msgid;
353353
ack.timestamp = msg->timestamp;
354354

355-
if (msg->data.acrnd_stop.force) {
355+
if (msg->data.acrnd_stop.force && !is_rtvm) {
356356
vm_set_suspend_mode(VM_SUSPEND_POWEROFF);
357357
ack.data.err = 0;
358358
} else {

0 commit comments

Comments
 (0)