Hi Stefano, > On 13 Jan 2022, at 00:58, Stefano Stabellini <[email protected]> wrote: > > From: Luca Miccio <[email protected]> > > When xs_introduce_domain is called, send out a notification on the > xenstore event channel so that any (dom0less) domain waiting for the > xenstore interface to be ready can continue with the initialization. > > The extra notification is harmless for domains that don't require it. > > Signed-off-by: Luca Miccio <[email protected]> > Signed-off-by: Stefano Stabellini <[email protected]> Reviewed-by: Bertrand Marquis <[email protected]>
Cheers Bertrand > --- > Changes in v2: > - drop the new late_init parameter > --- > tools/xenstore/xenstored_domain.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/xenstore/xenstored_domain.c > b/tools/xenstore/xenstored_domain.c > index d03c7d93a9..7487129e47 100644 > --- a/tools/xenstore/xenstored_domain.c > +++ b/tools/xenstore/xenstored_domain.c > @@ -461,6 +461,9 @@ static struct domain *introduce_domain(const void *ctx, > /* Now domain belongs to its connection. */ > talloc_steal(domain->conn, domain); > > + /* Notify the domain that xenstore is available */ > + xenevtchn_notify(xce_handle, domain->port); > + > if (!is_master_domain && !restore) > fire_watches(NULL, ctx, "@introduceDomain", NULL, > false, NULL); > -- > 2.25.1 > >
