mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-17 23:08:07 +00:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user