Skip to content

irqfd: use POLLHUP notification for close()

Gregory Haskins kvm lkml 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 22 repliesApplied
  2. v12 patches 23 repliesSuperseded

Changes in v2 from the cover letter

*) Pulled in Davide's official patch for 1/2 from his submission
accepted into -mmotm.
*) Fixed patch 2/2 to use the "key" field as a bitmap in the wakeup
logic, per Davide's feedback.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2Allow waiters to be notified about the eventfd file* going away, and givefs/eventfd.c+9 -10 replies
2/2kvm: use POLLHUP to close an irqfd instead of an explicit ioctlinclude/linux/kvm.h virt/kvm/eventfd.c virt/kvm/kvm_main.c+81 -10117 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchGregory HaskinsMichael S. Tsirkin
1/2T-b
2/2Found-by Found-by

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

Read the v2 thread

Cover letter [KVM PATCH v2 0/2] irqfd: use POLLHUP notification for close()

(Applies to kvm.git/master:25deed73)

Please see the header for 2/2 for a description. This patch series has been fully tested and appears to be working correctly.

[Review notes:
*) Paul has looked at the SRCU design and, to my knowledge, didn't find
any holes.
*) Michael, Avi, and myself agree that while the removal of the DEASSIGN
vector is not desirable, the fix on close() is more important in the short-term. We can always add DEASSIGN support again in the future with a CAP bit.
]

[Changelog:

v2:
*) Pulled in Davide's official patch for 1/2 from his submission
accepted into -mmotm.
*) Fixed patch 2/2 to use the "key" field as a bitmap in the wakeup
logic, per Davide's feedback.

v1:
*) Initial release
]

---

Davide Libenzi (1):
Allow waiters to be notified about the eventfd file* going away, and give

Gregory Haskins (1):
kvm: use POLLHUP to close an irqfd instead of an explicit ioctl

 fs/eventfd.c        |   10 +++
 include/linux/kvm.h |    2 -
 virt/kvm/eventfd.c  |  177 +++++++++++++++++++++++----------------------------
 virt/kvm/kvm_main.c |    3 +
 4 files changed, 90 insertions(+), 102 deletions(-)
Signature · 1 line
Signature