[PATCH 1/7] HV: Push NMI vector on to the exception stack


Kaige Fu
 

This patch pushs the NMI vector (2) on to the exception stack.
So, we can get the right vector in dispatch_exception.

Signed-off-by: Kaige Fu <kaige.fu@...>
---
hypervisor/arch/x86/idt.S | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hypervisor/arch/x86/idt.S b/hypervisor/arch/x86/idt.S
index cb42ea9e..bd6d7c47 100644
--- a/hypervisor/arch/x86/idt.S
+++ b/hypervisor/arch/x86/idt.S
@@ -110,9 +110,9 @@ excp_debug:

.align 8
excp_nmi:
-
-
-
+ pushq $0x0
+ pushq $0x02 /* pseudo error code */
+ jmp excp_save_frame

.align 8
excp_breakpoint:
--
2.20.0

Join {acrn-dev@lists.projectacrn.org to automatically receive all group messages.