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

Matthew Barnes posted 2 patches 2 weeks, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.1712840924.git.matthew.barnes@cloud.com
There is a newer version of this series
tools/xcutils/lsevtchn.c    | 8 ++++++--
xen/common/domctl.c         | 1 +
xen/include/public/domctl.h | 3 ++-
3 files changed, 9 insertions(+), 3 deletions(-)
[XEN PATCH 0/2] Enumerate all allocated evtchns in lsevtchn
Posted by Matthew Barnes 2 weeks, 6 days ago
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