[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v2 4/5] xenstored: send an evtchn notification on introduce_domain
- To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Thu, 13 Jan 2022 10:18:22 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Afjjrc1ITCSLeYCYt+u/Q1NRUZQvPIG5HyF0vfjrfGA=; b=fyW6iyNxw7Uq/JqTVrYImZCQzC/3RKFOQcp64XOM8fZKmU8eNalSQxKXkfYDHY7kkHCy6Oge+0Sg3T0myAPAHZtQbkR+xFdpLQ/iFnnb4tJLbihDDdqY90Xu62/kuifsv2J9qFEDHhlne48vacNL//1G5yi109laE1+Bohqz/CLUS6/mC8iG16eqntR5gm/Cb9RrZalw4uURYH3p796oRogei2xYTmYT2P2h62Fw0hUDa6Vfj45Ntnj+wOLo+hdKPxV/lt6ixEpuvrjUyafz/I3yaMpKCWo9Ns5JGSnlTpNiqtB6eoy9Juz7jyvnRThWgMiUryzXI3ab5YNiSc2wqQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M0pF4WATL4NVASbfMOPm+6hMS/W7ExIYDWFSZ2DwD9Tiw5ohbZ6Nv63cOXj3UXerWipCA3IjjN371n4//BN8DQu4bHXYdQZgfuwpWr7g9sgN7RuH2iTtO5hRfCRqgG7rmbaaYz4gI0oUiDCdZ2b238mhTD+aWqJwviIuerTYxi+buH5R+w38A6jzqmPgYnJhgfRSfL9Ut1prR4GJpqruB4CsKEwR5pdGnmLJRNOdbhBy/TKklibgOlR5LntDk7itH4Fg6fbY/f4KdwFvkS+A2Oz79bunDxejfY6Zs7FsSvJxrMI5qP6LRYbn8zprJHJmmUZYbP4vWW462nO/T1x9Kg==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "jgross@xxxxxxxx" <jgross@xxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, "Volodymyr_Babchuk@xxxxxxxx" <Volodymyr_Babchuk@xxxxxxxx>, Luca Miccio <lucmiccio@xxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
- Delivery-date: Thu, 13 Jan 2022 10:18:53 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHYCBjHbbjYjleLtkqmAysdkxDl76xgvZQA
- Thread-topic: [XEN PATCH v2 4/5] xenstored: send an evtchn notification on introduce_domain
Hi Stefano,
> On 13 Jan 2022, at 00:58, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
>
> From: Luca Miccio <lucmiccio@xxxxxxxxx>
>
> 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 <lucmiccio@xxxxxxxxx>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
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
>
>
|