mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-13 04:50:07 +00:00
signal SIGINT: map SIGINT to watchdog reset
Map SIGINT(2) to watchdog reset. NOTE: We required guest to do a full reset after detect the recent last reset type is watchdog. This is used to resume the passthru devices in UOS. Tracked-On: #3103 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
634e310f9b
commit
f2d654cc44
@@ -387,6 +387,12 @@ pci_wdt_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
vm_set_watchdog_bite(void)
|
||||
{
|
||||
wdt_timeout = 1;
|
||||
}
|
||||
|
||||
/* stop/reset watchdog will be invoked during guest enter/exit S3.
|
||||
* We stop watchdog timer when guest enter S3 to avoid watchdog trigger
|
||||
* guest reset when guest is in S3 state.
|
||||
|
Reference in New Issue
Block a user