mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 12:49:24 +00:00
DM: add a thread to monitor UOS ptdev intr status
This patch is for "interrupt storm mitigation", used to reduce the effect on SOS if an "interrupt storm" happens in UOS. Add a monitor thread to get UOS pass-through devices interrupt freqency data; currently, if "interrupt storm" happens, it'll send a command to delay interrupt injection to UOS for some time. The parameters: interrupt storm threshold and delay time can be adjusted according differt HW configure and use case. Tracked-On: #866 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -152,6 +152,7 @@ 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);
|
||||
int vm_intr_monitor(struct vmctx *ctx, void *intr_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