All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH v2 0/2] Enumerate all allocated evtchns in lsevtchn
@ 2024-04-29 13:42 Matthew Barnes
  2024-04-29 13:42 ` [XEN PATCH v2 1/2] evtchn: Add error status indicators for evtchn_status hypercall Matthew Barnes
  2024-04-29 13:42 ` [XEN PATCH v2 2/2] tools/lsevtchn: Use new status identifiers in loop Matthew Barnes
  0 siblings, 2 replies; 4+ messages in thread
From: Matthew Barnes @ 2024-04-29 13:42 UTC (permalink / raw)
  To: xen-devel
  Cc: Matthew Barnes, Andrew Cooper, George Dunlap, Jan Beulich,
	Julien Grall, Stefano Stabellini, Anthony PERARD

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(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-30 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-29 13:42 [XEN PATCH v2 0/2] Enumerate all allocated evtchns in lsevtchn Matthew Barnes
2024-04-29 13:42 ` [XEN PATCH v2 1/2] evtchn: Add error status indicators for evtchn_status hypercall Matthew Barnes
2024-04-30 12:19   ` Jan Beulich
2024-04-29 13:42 ` [XEN PATCH v2 2/2] tools/lsevtchn: Use new status identifiers in loop Matthew Barnes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.