[PATCH 0/8] KVM: minor cleanups and optimizations

From: Mathias Krause
Date: Wed Aug 29 2012 - 19:32:05 EST


Hi Avi, Marcelo

this patch series implements a few micro optimizations for the x86 KVM
code base. The two major changes are constification of variables and an
optimization for the SSE emulation. The former gives the compiler more
opportunities for optimizations and ensures the r/o data is not put in
a cache line together with data that gets written to. The latter should
speed up the emulation of SSE register moves as the aligned variant of
MOVDQ has lower latencies and higher throughput than the unaligned one.

Regards,

Mathias Krause (8):
KVM: x86: minor size optimization
KVM: x86 emulator: use aligned variants of SSE register ops
KVM: x86: mark opcode tables const
KVM: x86: constify emulate_ops
KVM: x86: constify read_write_emulator_ops
KVM: x86: more constification
KVM: VMX: constify lookup tables
KVM: SVM: constify lookup tables

arch/x86/include/asm/kvm_emulate.h | 2 +-
arch/x86/kvm/cpuid.c | 12 ++--
arch/x86/kvm/emulate.c | 126 ++++++++++++++++++------------------
arch/x86/kvm/lapic.c | 2 +-
arch/x86/kvm/svm.c | 8 +--
arch/x86/kvm/vmx.c | 14 ++--
arch/x86/kvm/x86.c | 12 ++--
7 files changed, 88 insertions(+), 88 deletions(-)

--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/