All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH 0/2] Enumerate all allocated evtchns in lsevtchn
@ 2024-04-11 15:24 Matthew Barnes
  2024-04-11 15:24 ` [XEN PATCH 1/2] xen/domctl: Add highest allocated evtchn port to getdomaininfo Matthew Barnes
  2024-04-11 15:24 ` [XEN PATCH 2/2] tools/lsevtchn: Use evtchn port upper bound for evtchn enumeration Matthew Barnes
  0 siblings, 2 replies; 5+ messages in thread
From: Matthew Barnes @ 2024-04-11 15:24 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.

This patch series adds the highest allocated event channel port for a
given domain in the xen_domctl_getdomaininfo hypercall struct, and uses
that value as an upper bound in the lsevtchn loop.

Matthew Barnes (2):
  xen/domctl: Add highest allocated evtchn port to getdomaininfo
  tools/lsevtchn: Use evtchn port upper bound for evtchn enumeration

 tools/xcutils/lsevtchn.c    | 8 ++++++--
 xen/common/domctl.c         | 1 +
 xen/include/public/domctl.h | 3 ++-
 3 files changed, 9 insertions(+), 3 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-04-18 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-11 15:24 [XEN PATCH 0/2] Enumerate all allocated evtchns in lsevtchn Matthew Barnes
2024-04-11 15:24 ` [XEN PATCH 1/2] xen/domctl: Add highest allocated evtchn port to getdomaininfo Matthew Barnes
2024-04-18 14:59   ` Jan Beulich
2024-04-11 15:24 ` [XEN PATCH 2/2] tools/lsevtchn: Use evtchn port upper bound for evtchn enumeration Matthew Barnes
2024-04-18 14:34   ` Jan Beulich

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.