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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Sasha Levin <levinsasha928@xxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux