dm: introduce system/full reset and suspend

Guest has erquirement to support system/full reboot and S3. Which could
trigger different reset path in guest

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Yin Fengwei
2018-05-21 16:32:32 +08:00
committed by lijinxia
parent 76662a634f
commit 8d12c06270
6 changed files with 24 additions and 15 deletions

View File

@@ -105,7 +105,7 @@ wdt_expired_thread(union sigval v)
wdt_timeout = 1;
/* watchdog timer out, set the uos to reboot */
vm_set_suspend_mode(VM_SUSPEND_RESET);
vm_set_suspend_mode(VM_SUSPEND_FULL_RESET);
mevent_notify();
} else {
/* if not need reboot, just loop timer */