mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Like Xu <like.xu.linux@gmail.com>
To: Alex Williamson <alex.williamson@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Subject: [PATCH v2 0/2] KVM: irqbypass: XArray conversion and a deref fix
Date: Wed,  2 Aug 2023 13:16:58 +0800	[thread overview]
Message-ID: <20230802051700.52321-1-likexu@tencent.com> (raw)

Hi,

When VMM(s) simultaneously create a large number of irqfds and register
their irqfds in the global consumers list, the global mutex contention
exponentially increases the average wait latency, which is no longer
tolerable on modern systems with a large number of CPU cores.

The patch set is intended to reduce this source of latency by
converting producers/consumers single linked list to XArray.

Please feel free to run more tests and share comments to move forward.

V1 -> V2 Changelog:
- Send the prerequisite fix as a series; (Alex W.)
- Keep producer and consumer connected and tracked; (Alex W.)
V1:
https://lore.kernel.org/kvm/20230801115646.33990-1-likexu@tencent.com/
https://lore.kernel.org/kvm/20230801085408.69597-1-likexu@tencent.com/

Like Xu (2):
  KVM: eventfd: Fix NULL deref irqbypass producer
  KVM: irqbypass: Convert producers/consumers linked list to
    XArray

 include/linux/irqbypass.h |   8 +--
 virt/lib/irqbypass.c      | 127 +++++++++++++++++++-------------------
 2 files changed, 63 insertions(+), 72 deletions(-)


base-commit: 5a7591176c47cce363c1eed704241e5d1c42c5a6
-- 
2.41.0


             reply	other threads:[~2023-08-02  5:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-02  5:16 Like Xu [this message]
2023-08-02  5:16 ` [PATCH v2 1/2] KVM: eventfd: Fix NULL deref irqbypass producer Like Xu
2023-08-16 18:37   ` Sean Christopherson
2023-09-25  7:59     ` Like Xu
2023-08-02  5:17 ` [PATCH v2 2/2] KVM: irqbypass: Convert producers/consumers single linked list to XArray Like Xu
2023-08-02 18:30   ` Alex Williamson
2023-09-25 15:24     ` Like Xu
2023-09-26  9:18       ` Like Xu
2023-10-11 11:24         ` Like Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230802051700.52321-1-likexu@tencent.com \
    --to=like.xu.linux@gmail.com \
    --cc=alex.williamson@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®