diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-03-18 09:20:06 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:15:59 -0400 |
commit | 063db061b9b3472c925f09ae3a0a8359b80c2295 (patch) | |
tree | b38642f43f436c88ab67c5cadd618596d6e9130a /arch/x86/include/asm/kvm_emulate.h | |
parent | 9c5372445c1ad4fcdb4128957ec89334223b8113 (diff) |
KVM: Provide current eip as part of emulator context.
Eliminate the need to call back into KVM to get it from emulator.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_emulate.h')
-rw-r--r-- | arch/x86/include/asm/kvm_emulate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index b048fd21c54e..07657258af8f 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h | |||
@@ -141,7 +141,7 @@ struct decode_cache { | |||
141 | u8 seg_override; | 141 | u8 seg_override; |
142 | unsigned int d; | 142 | unsigned int d; |
143 | unsigned long regs[NR_VCPU_REGS]; | 143 | unsigned long regs[NR_VCPU_REGS]; |
144 | unsigned long eip, eip_orig; | 144 | unsigned long eip; |
145 | /* modrm */ | 145 | /* modrm */ |
146 | u8 modrm; | 146 | u8 modrm; |
147 | u8 modrm_mod; | 147 | u8 modrm_mod; |
@@ -160,6 +160,7 @@ struct x86_emulate_ctxt { | |||
160 | struct kvm_vcpu *vcpu; | 160 | struct kvm_vcpu *vcpu; |
161 | 161 | ||
162 | unsigned long eflags; | 162 | unsigned long eflags; |
163 | unsigned long eip; /* eip before instruction emulation */ | ||
163 | /* Emulated execution mode, represented by an X86EMUL_MODE value. */ | 164 | /* Emulated execution mode, represented by an X86EMUL_MODE value. */ |
164 | int mode; | 165 | int mode; |
165 | u32 cs_base; | 166 | u32 cs_base; |