On 01.04.2022 02:38, Stefano Stabellini wrote: > From: Stefano Stabellini <stefano.stabell...@xilinx.com> > > It will be used during dom0less domains construction. > > Signed-off-by: Stefano Stabellini <stefano.stabell...@xilinx.com>
I think this better wouldn't be a patch of its own. Functions should be non-static only when they have a user outside of their defining TU. > --- a/xen/include/xen/event.h > +++ b/xen/include/xen/event.h > @@ -71,6 +71,9 @@ void evtchn_free(struct domain *d, struct evtchn *chn); > /* Allocate a specific event channel port. */ > int evtchn_allocate_port(struct domain *d, unsigned int port); > > +/* Allocate a new event channel */ > +int evtchn_alloc_unbound(evtchn_alloc_unbound_t *alloc); I wonder whether while exposing it the function should also become __must_check. Jan