From: Pekka Enberg Subject: [PATCH 4/8] kvm tools, bios: Add EIP and EFLAGS to 'struct biosregs' Date: Fri, 12 Aug 2011 14:07:02 +0300 Message-ID: <1313147226-12400-4-git-send-email-penberg@kernel.org> References: <1313147226-12400-1-git-send-email-penberg@kernel.org> Cc: Pekka Enberg , Cyrill Gorcunov , Ingo Molnar , Sasha Levin To: kvm@vger.kernel.org Return-path: Received: from filtteri6.pp.htv.fi ([213.243.153.189]:36418 "EHLO filtteri6.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535Ab1HLLHI (ORCPT ); Fri, 12 Aug 2011 07:07:08 -0400 In-Reply-To: <1313147226-12400-1-git-send-email-penberg@kernel.org> Sender: kvm-owner@vger.kernel.org List-ID: This patch adds EIP and EFLAGS to 'struct biosregs' in preparation for converting int15 handler into C code. Cc: Cyrill Gorcunov Cc: Ingo Molnar Cc: Sasha Levin Signed-off-by: Pekka Enberg --- 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