Skip to content

KVM: irqbypass: XArray conversion and a deref fix

Like Xu kvm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesIn review
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

- Send the prerequisite fix as a series; (Alex W.)
- Keep producer and consumer connected and tracked; (Alex W.) V1:
https://lore.kernel.org/kvm/[email protected]/
https://lore.kernel.org/kvm/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: eventfd: Fix NULL deref irqbypass producervirt/lib/irqbypass.c+2 -22 replies
2/2KVM: irqbypass: Convert producers/consumers single linked list to XArrayinclude/linux/irqbypass.h virt/lib/irqbypass.c+63 -724 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAlex Williamson
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] KVM: irqbypass: XArray conversion and a deref fix

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/[email protected]/
https://lore.kernel.org/kvm/[email protected]/

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

Signature · 1 line
2.41.0