From 2f7e8602c8f6a7e8a9d2e782b45d504baadbb950 Mon Sep 17 00:00:00 2001
From: Avi Kivity <avi@cloudius-systems.com>
Date: Mon, 4 Feb 2013 11:02:16 +0200
Subject: [PATCH] entry: temporarily disable interrupt nesting

We play with the tss, which is supposedly per-cpu, but this has not been
implemented yet.  Disable it temporarily.  Meanwhile, interrupts and
exceptions may not nest.
---
 arch/x64/entry.S | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/x64/entry.S b/arch/x64/entry.S
index 3b9e3fa25..f8b81500b 100644
--- a/arch/x64/entry.S
+++ b/arch/x64/entry.S
@@ -1,8 +1,6 @@
 
 #include "cfi.S"
 
-interrupt_stack_frame = 4096
-
 .macro exception_entry name, handler, has_error_code
 	.global \name
 	\name :
@@ -14,7 +12,6 @@ interrupt_stack_frame = 4096
 	.cfi_def_cfa %rsp, 0
 	.cfi_offset %rip, 8
 	.cfi_offset %rsp, 32
-	subq $interrupt_stack_frame, tss_ist+8 # FIXME: assumes proper nesting of interrupts
 	pushq_cfi %rax
 	pushq_cfi %rbx
 	pushq_cfi %rcx
@@ -48,7 +45,6 @@ interrupt_stack_frame = 4096
 	popq_cfi %rbx
 	popq_cfi %rax
 	add $8, %rsp
-	addq $interrupt_stack_frame, tss_ist+8 # FIXME: assumes proper nesting of interrupts
 	iretq
 	.cfi_endproc
 .endm
-- 
GitLab