]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: APIC: avoid instruction emulation for EOI writes
authorKevin Tian <kevin.tian@intel.com>
Tue, 30 Aug 2011 10:56:17 +0000 (13:56 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:17 +0000 (19:52 +0300)
commit58fbbf26eb01cf6d92cf18da8d14b3a4af9c4b47
tree738874a15a233eed6e2e18d9cfe99f09482e8b17
parent45133ecaaec7aea447afc98cc2c24aac638bbe5c
KVM: APIC: avoid instruction emulation for EOI writes

Instruction emulation for EOI writes can be skipped, since sane
guest simply uses MOV instead of string operations. This is a nice
improvement when guest doesn't support x2apic or hyper-V EOI
support.

a single VM bandwidth is observed with ~8% bandwidth improvement
(7.4Gbps->8Gbps), by saving ~5% cycles from EOI emulation.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
<Based on earlier work from>:
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/vmx.h
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/vmx.c