Skip to content

Enumerate all allocated evtchns in lsevtchn

Matthew Barnes xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2evtchn: Add error status indicators for evtchn_status hypercallxen/common/event_channel.c xen/include/public/event_channel.h+13 -11 reply
2/2tools/lsevtchn: Use new status identifiers in looptools/xcutils/lsevtchn.c+10 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [XEN PATCH v2 0/2] Enumerate all allocated evtchns in lsevtchn

Currently, lsevtchn aborts its event channel enumeration when it hits its first hypercall error, namely:
* When an event channel doesn't exist at the specified port
* When the event channel is owned by Xen

This results in lsevtchn missing potential relevant event channels with higher port numbers, since lsevtchn cannot determine the cause of hypercall errors.

This patch adds error status indicators for the evtchn_status hypercall for when no further event channels will be yielded for higher port numbers, allowing lsevtchn to terminate when all event channels have been enumerated over.

Matthew Barnes (2):
evtchn: Add error status indicators for evtchn_status hypercall tools/lsevtchn: Use new status identifiers in loop

 tools/xcutils/lsevtchn.c           | 11 ++++++++++-
 xen/common/event_channel.c         | 12 +++++++++++-
 xen/include/public/event_channel.h |  2 ++
 3 files changed, 23 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1