mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +00:00
HV: add hypercall to monitor UOS PTdev intr status
The hypercall can be used by SOS/DM to monitor UOS pass-thru devices' interrupt data; and if an "interrupt storm" happens in UOS, it can be used to delay the UOS PTdev interrupt's injection for sometime. The two functions are implemented by one hypercall with two sub-commands, and with the data/params in the buffer. Tracked-On: #866 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -453,6 +453,26 @@ enum pm_cmd_type {
|
||||
PMCMD_GET_CX_DATA,
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Info to get a VM interrupt count data
|
||||
*
|
||||
* the parameter for HC_VM_INTR_MONITOR hypercall
|
||||
*/
|
||||
#define MAX_PTDEV_NUM 24
|
||||
struct acrn_intr_monitor {
|
||||
/** sub command for intr monitor */
|
||||
uint32_t cmd;
|
||||
/** the count of this buffer to save */
|
||||
uint32_t buf_cnt;
|
||||
|
||||
/** the buffer which save each interrupt count */
|
||||
uint64_t buffer[MAX_PTDEV_NUM * 2];
|
||||
} __aligned(8);
|
||||
|
||||
/** cmd for intr monitor **/
|
||||
#define INTR_CMD_GET_DATA 0U
|
||||
#define INTR_CMD_DELAY_INT 1U
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user