kvm_apic_eoi has higher access frequency, aligning it to cacheline can give better performance Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx> --- arch/x86/kernel/kvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index d4e48b4..d413478 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -330,7 +330,8 @@ static void kvm_register_steal_time(void) (unsigned long long) slow_virt_to_phys(st)); } -static DEFINE_PER_CPU_DECRYPTED(unsigned long, kvm_apic_eoi) = KVM_PV_EOI_DISABLED; +static DEFINE_PER_CPU_DECRYPTED(unsigned long, kvm_apic_eoi) \ + __aligned(64) = KVM_PV_EOI_DISABLED; static notrace void kvm_guest_apic_eoi_write(u32 reg, u32 val) { -- 2.9.4