HV: Install a NMI handler in acrn IDT

This patch installs a NMI handler in acrn IDT to handle
NMIs out of dispatch_exception.

Tracked-On: #3886
Acked-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
This commit is contained in:
Kaige Fu
2019-12-11 15:16:35 +00:00
committed by wenlingz
parent fb346a6c11
commit 525d4d3cd0
3 changed files with 33 additions and 3 deletions

View File

@@ -302,6 +302,15 @@ uint32_t irq_to_vector(uint32_t irq);
*/
void dispatch_interrupt(const struct intr_excp_ctx *ctx);
/**
* @brief Handle NMI
*
* To handle an NMI
*
* @param ctx Pointer to interrupt exception context
*/
void handle_nmi(__unused struct intr_excp_ctx *ctx);
/**
* @brief Initialize interrupt
*