This patch adds EIP and EFLAGS to 'struct biosregs' in preparation for
converting int15 handler into C code.

Cc: Cyrill Gorcunov <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Sasha Levin <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
---
 tools/kvm/bios/bios.S        |    4 ++--
 tools/kvm/include/kvm/bios.h |    3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

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
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to