mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 19:00:16 +00:00
DM: add vm_stop/reset_watchdog
When guest enter/exit S3, we need to do 1. stop watchdog timer when guest enter S3 to avoid watchdog timer reset guest when guest is in S3 state. 2. reset watchdog timer when guest exit from S3. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -148,4 +148,6 @@ int vm_reset_ptdev_intx_info(struct vmctx *ctx, int virt_pin, bool pic_pin);
|
||||
int vm_create_vcpu(struct vmctx *ctx, uint16_t vcpu_id);
|
||||
|
||||
int vm_get_cpu_state(struct vmctx *ctx, void *state_buf);
|
||||
void vm_stop_watchdog(struct vmctx *ctx);
|
||||
void vm_reset_watchdog(struct vmctx *ctx);
|
||||
#endif /* _VMMAPI_H_ */
|
||||
|
Reference in New Issue
Block a user