acrn-dm: add some logs for vm state transition

add logs for vm state transition to help
analyze some problems.

Tracked-On: #4098
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
Mingqiang Chi
2020-05-12 11:04:44 +08:00
committed by wenlingz
parent e58609ad1f
commit 4d3221a7f3
7 changed files with 30 additions and 4 deletions

View File

@@ -136,10 +136,12 @@ wdt_expired_handler(void *arg, uint64_t nexp)
/* watchdog timer out, set the uos to reboot */
#ifdef DM_DEBUG
pr_info("%s: setting VM state to %s\n", __func__, vm_state_to_str(VM_SUSPEND_SYSTEM_RESET));
vm_set_suspend_mode(VM_SUSPEND_SYSTEM_RESET);
/* Notify vm thread to handle VM_SUSPEND_SYSTEM_RESET request */
notify_vmloop_thread();
#else
pr_info("%s: setting VM state to %s\n", __func__, vm_state_to_str(VM_SUSPEND_FULL_RESET));
vm_set_suspend_mode(VM_SUSPEND_FULL_RESET);
#endif
mevent_notify();