Received: by 10.192.165.148 with SMTP id m20csp4256752imm; Mon, 23 Apr 2018 22:52:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx484N73AAbCHR+vptFQFny9vMn1srvew8RdOhbw8WWJZwuKD86STCmRyW+wrN2E+1JsEhg0d X-Received: by 10.167.131.217 with SMTP id j25mr22389750pfn.5.1524549147115; Mon, 23 Apr 2018 22:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524549147; cv=none; d=google.com; s=arc-20160816; b=xh7iKxdZXXLc7MYcNkc7tt8sVD30nX2epCaSeQ+t7oBBY56PXOt4OiwTwdxOMPuNbz ehkeJLb3q1xXnd3PtZATWdIMH1UV4tF4mBYIsBEBL6LkVFygVJYMLC4xmXTKnj1NwA1A OtydSuz6iLTRo/mMbQvEsANjen2q6iONV6qqNf9qnV3wI69RheDA17UFZ/z7yaMgsAFF rGENkvACYyiMbBpxcwOLUFMVFvAo/P15h2VUac60jowEPYNVEM8jwPCpV/e+vGd8c6A9 jGH7My4blwV0fG/jSpzxh4tUv2B9gF4WuWJ9TlTkKBLj1WHUeOfcDDbtW6O2d6OSFHDF NQdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=2aoysmg01JywIgD70eVr3REyW8fdHnJQdGVgajl0+vM=; b=CkYQS3P1FKkp1NlUY75w02XOXT1vhoaf5T0kxLVl/u4+8hmXY0m337vURhqrRt0RGM VsiJ5+3/NE74jd34pxCqEipANxvJ3zvPuL3UYdcXpXOvuy9QH0ycrCF+vZcvmdCV93Bk 1MnrnOFwTVTd5y4VAkj3vxgeEyiUOwF79Uceo8o6i5ITVWQIO7AM1fps46XiOwRGdg93 UTYMtM/UCAekssPghmmVvkJa7NXJSlDIdjuVJjjwx20M7jxLiyEu8seW1YuK4jg32Goe 8GdShSo+Xbjxo4FRWv8aAQdBRIKe5qfpRn7/UT104s6vn1XStcSrr09mqjRhxjZ1VCaM SUrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=UzAuR5yx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si13355645pls.491.2018.04.23.22.52.12; Mon, 23 Apr 2018 22:52:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=UzAuR5yx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756021AbeDXFvD (ORCPT + 99 others); Tue, 24 Apr 2018 01:51:03 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:48066 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751469AbeDXFvC (ORCPT ); Tue, 24 Apr 2018 01:51:02 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3O5orFX052478; Tue, 24 Apr 2018 05:50:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : references : cc : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=2aoysmg01JywIgD70eVr3REyW8fdHnJQdGVgajl0+vM=; b=UzAuR5yx4dd4exSD5sEf3hu8+a5b92pS/Igf4/0z0NXANzpcb09iMvjZq87kqxk4ymqV tdURoEQ87lAWI9m0gkOVtOkEc5w0ab6aIyKG+BxRDiOAJY8V4AMv49g7XihRpsVMBxpI eaG9Hb9+0LqJlEgMWhxEuB+cHRmyLiiNh8gCjS+GV34Egijh3w9JqdxV5TjDKlliVQex ymS0+DgwANHdbgZHRvLQ1IY9wAG++juuO7OZ0M0Fz8u7/7aM9jeVohYvX9l6hdQYpW1h fMba/wJLm6ZzBOvvSBNB/dWiLMx+bsl5aFCxnaTo6FWL1hAF158HdmCH38G1o+HhYasj fA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2hfwy9g7cr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Apr 2018 05:50:52 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w3O5op3X019765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Apr 2018 05:50:51 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w3O5ooVW000831; Tue, 24 Apr 2018 05:50:50 GMT Received: from [10.182.69.93] (/10.182.69.93) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 23 Apr 2018 22:50:50 -0700 Subject: Re: [Xen-devel] [RFC 0/2] To introduce xenwatch multithreading (xen mtwatch) To: Juergen Gross References: <1523100355-27647-1-git-send-email-dongli.zhang@oracle.com> <20180423140911.bihiwfwtlneobgzd@citrix.com> <6c379249-886d-76ee-db9c-942967b23d80@oracle.com> Cc: Wei Liu , ian.jackson@eu.citrix.com, linux-kernel@vger.kernel.org, srinivas.eeda@oracle.com, xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com, Joao Martins From: Dongli Zhang Message-ID: <9a91b19a-5556-f1ea-92d5-29f2baa0ccd5@oracle.com> Date: Tue, 24 Apr 2018 13:52:48 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8872 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=870 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804240059 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Juergen, On 04/24/2018 01:22 PM, Juergen Gross wrote: > On 24/04/18 01:55, Dongli Zhang wrote: >> Hi Wei, >> >> On 04/23/2018 10:09 PM, Wei Liu wrote: >>> On Sat, Apr 07, 2018 at 07:25:53PM +0800, Dongli Zhang wrote: >>>> About per-domU xenwatch thread create/destroy, a new type of xenstore node is >>>> introduced: '/local/domain/0/mtwatch/'. >>>> >>>> Suppose the new domid id 7. During the domU (domid=7) creation, the xen >>>> toolstack writes '/local/domain/0/mtwatch/7' to xenstore before the insertion >>>> of '/local/domain/7'. When the domid=7 is destroyed, the last xenstore >>>> operation by xen toolstack is to remove '/local/domain/0/mtwatch/7'. >>>> >>>> The dom0 kernel subscribes a watch at node '/local/domain/0/mtwatch'. Kernel >>>> thread [xen-mtwatch-7] is created when '/local/domain/0/mtwatch/7' is inserted, >>>> while this kernel thread is destroyed when the corresponding xenstore node is >>>> removed. >>> >>> Instead of inventing yet another node, can you not watch /local/domain >>> directly? >> >> Would you like to watch at /local/domain directly? Or is your question "is there >> any other way to not watch at /local/domain, while no extra xenstore node will >> be introduced"? >> >> Actually, the first prototype of this idea was to watch at /local/domain >> directly to get aware of the domU create/destroy, so that xen toolstack will not >> get involved. Joao Martins (CCed) had a concern on the performance as watching >> at /local/domain would lead to large amount of xenwatch events. > > That's what the special watches "@introduceDomain" and "@releaseDomain" > are meant for. I used to consider to watch at "@introduceDomain". However, there is no domain information appended with "@introduceDomain" and it is still required for dom0 kernel to proactively confirm who is created. Dongli Zhang