aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_emulate.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-07-29 08:11:51 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:50:22 -0400
commitef65c88912cafe56de2737c440aefc764fd8f202 (patch)
treef9e3ec543228d18234bb2304d0ebd17da39a5364 /arch/x86/include/asm/kvm_emulate.h
parent9aabc88fc8687ba3a520e2ec459821d05f72474e (diff)
KVM: x86 emulator: allow storing emulator execution function in decode tables
Instead of looking up the opcode twice (once for decode flags, once for the big execution switch) look up both flags and function in the decode tables. Signed-off-by: Avi Kivity <avi@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index 9ddfa5ed2289..0f901c16cf1c 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -190,6 +190,7 @@ struct decode_cache {
190 bool has_seg_override; 190 bool has_seg_override;
191 u8 seg_override; 191 u8 seg_override;
192 unsigned int d; 192 unsigned int d;
193 int (*execute)(struct x86_emulate_ctxt *ctxt);
193 unsigned long regs[NR_VCPU_REGS]; 194 unsigned long regs[NR_VCPU_REGS];
194 unsigned long eip; 195 unsigned long eip;
195 /* modrm */ 196 /* modrm */