]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: emulate: speed up do_insn_fetch
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 May 2014 10:24:32 +0000 (12:24 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jul 2014 07:14:02 +0000 (09:14 +0200)
commitadb409ec076d75263b32168528de7ddd28a218cc
treee2aa61f852b3f2896b2ca6eb5c23275387ec9dae
parent4f5ee7780a8e229349a8b9366434959f76cbf56c
KVM: emulate: speed up do_insn_fetch

Hoist the common case up from do_insn_fetch_byte to do_insn_fetch,
and prime the fetch_cache in x86_decode_insn.  This helps a bit the
compiler and the branch predictor, but above all it lays the
ground for further changes in the next few patches.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c