diff mbox

[4/8] kvm tools, bios: Add EIP and EFLAGS to 'struct biosregs'

Message ID 1313147226-12400-4-git-send-email-penberg@kernel.org (mailing list archive)
State New, archived
Headers show

Commit Message

Pekka Enberg Aug. 12, 2011, 11:07 a.m. UTC
This patch adds EIP and EFLAGS to 'struct biosregs' in preparation for
converting int15 handler into C code.

Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
---
 tools/kvm/bios/bios.S        |    4 ++--
 tools/kvm/include/kvm/bios.h |    3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/tools/kvm/bios/bios.S b/tools/kvm/bios/bios.S
index 75d31fd..f3c6592 100644
--- a/tools/kvm/bios/bios.S
+++ b/tools/kvm/bios/bios.S
@@ -14,7 +14,7 @@ 
 
 /* If you change these macros, remember to update 'struct biosregs' */
 .macro SAVE_BIOSREGS
-	pushw	%fs
+	pushl	%fs
 	pushl	%es
 	pushl	%edi
 	pushl	%esi
@@ -36,7 +36,7 @@ 
 	popl	%esi
 	popl	%edi
 	popl	%es
-	popw	%fs
+	popl	%fs
 .endm
 
 /*
diff --git a/tools/kvm/include/kvm/bios.h b/tools/kvm/include/kvm/bios.h
index 7651075..69a5654 100644
--- a/tools/kvm/include/kvm/bios.h
+++ b/tools/kvm/include/kvm/bios.h
@@ -68,6 +68,9 @@  struct biosregs {
 	u32			esi;
 	u32			edi;
 	u32			es;
+	u32			fs;
+	u32			eip;
+	u32			eflags;
 };
 
 #endif