]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Narrow down the IPI fastpath to single target IPI
authorWanpeng Li <wanpengli@tencent.com>
Thu, 26 Mar 2020 02:20:01 +0000 (10:20 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Mar 2020 09:44:21 +0000 (05:44 -0400)
commit34720fa125ec45df179006ba94bbfb4693c0ab9c
treec14008c823087424a16f2885cab2a7cba3633655
parent3e2cd40a1b0ca5be3bcf9ba918ce7ba19c0fe1d9
KVM: X86: Narrow down the IPI fastpath to single target IPI

The original single target IPI fastpath patch forgot to filter the
ICR destination shorthand field. Multicast IPI is not suitable for
this feature since wakeup the multiple sleeping vCPUs will extend
the interrupt disabled time, it especially worse in the over-subscribe
and VM has a little bit more vCPUs scenario. Let's narrow it down to
single target IPI.

Two VMs, each is 76 vCPUs, one running 'ebizzy -M', the other
running cyclictest on all vCPUs, w/ this patch, the avg score
of cyclictest can improve more than 5%. (pv tlb, pv ipi, pv
sched yield are disabled during testing to avoid the disturb).

Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1585189202-1708-3-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c