KVM: x86 emulator: allow storing emulator execution function in decode tables
authorAvi Kivity <avi@redhat.com>
Thu, 29 Jul 2010 12:11:51 +0000 (15:11 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:22 +0000 (10:50 +0200)
commitef65c88912cafe56de2737c440aefc764fd8f202
treef9e3ec543228d18234bb2304d0ebd17da39a5364
parent9aabc88fc8687ba3a520e2ec459821d05f72474e
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>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c