Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2028211imm; Thu, 11 Oct 2018 04:04:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV63uAaN0hazaU3Imynsm4QHGsGmidTzWlm5fHfpqLQTFc+WDHCBEGX4PNuBKFp68vSpE4B/c X-Received: by 2002:a63:61d0:: with SMTP id v199-v6mr1008441pgb.242.1539255861452; Thu, 11 Oct 2018 04:04:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539255861; cv=none; d=google.com; s=arc-20160816; b=jPgQ+LE/xQxKiAX5qUJjp2VeWRVg3p476WzvDDdRwxCREIr9rm5WBIVYCshw921qBP UjycmVQ0L3r4BgYGp1FUG3TaA/oScN9zhi7Jb7Xu6VnVvamrF6P59uVDMTYPYt0/bITc 9UjMFLaXMP50Dl7+snxf/3uTLKJY3B781TwSLFHzUA5sr2v4LxonE9ahpXBZHupw0YJQ TaKpfy58UCL2uFPb+zMdLh2G8FdvURSFOin3jBDJ7wmEY6m9IZtZU4ropGV51tXyDpIb HkurOCe2/mQAtBzeF/HZQCSdPt3y9mFxzCzTs/ZClDcD5P2N6/jUvVda//f+8btiNQA9 IAbQ== 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 :content-language:in-reply-to:mime-version:date:message-id:from :references:cc:to:subject:dkim-signature; bh=f/4tcR6Qk0aYJm+8PZLaNqONoyNmujzIWMOxtTtamgk=; b=rqdeyW3xZBZPAcTdoJSpHwgjSrnbDweJ2iTLtRdgOz9IVvBxI/R65tjYIwUh56MPWa 9gAxB5jF4d3qGEkuzR9dHHQae2hK5jyND2PIPHQ19sFVkDsHQ/jqvOH0NXS0FMOdzxYy LsWGNeITpuqYJnJ1eUYZB3XMw1Aa56tWuNSNu4s/aZQ6Ag0pLhHPLZmq+n3VOYVwqQi+ RJvqOfuUsNfUGZG2AcmWzGeRrGOk/qU/MoIW2b+wgaUhTmvGjTRoMfojEERFxwvwb//M Mt6lD0CaA2svM8ow3YuynTVqY7YWrWS9FWmVmIZWtm0JKOEERBZoTwpJ9uBKV6bTXPk7 oCdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=tfvcvXfU; 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 d10-v6si32597246pln.68.2018.10.11.04.04.06; Thu, 11 Oct 2018 04:04:21 -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-2018-07-02 header.b=tfvcvXfU; 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 S1727547AbeJKSaS (ORCPT + 99 others); Thu, 11 Oct 2018 14:30:18 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:54626 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbeJKSaR (ORCPT ); Thu, 11 Oct 2018 14:30:17 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9BArolh018108; Thu, 11 Oct 2018 11:03:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=f/4tcR6Qk0aYJm+8PZLaNqONoyNmujzIWMOxtTtamgk=; b=tfvcvXfUZLUyFT0HvQmfOk/KEoZmjlNBT6fXv25RJpkcRJsy/oRSsRfO5V3uvi1m3E/m Nb3XCUUlQ1+kUbYUbQO6QTioEntq6IWWuAHg0+75gETMElICYtzLXHA9V0kZsbx4XAL2 9q7HfSi3lJsezyOqBcgXCV5613e8XZ6Tfmj0khqUf1xDrHVDVsdUpVE3PSB+nlwNZDFf JgnwK9GYB98mmBXu1+1M9PJRmH7pC+uZE5F/sV0UvcSjuZG8bqmY01H3X5A4vgGJ5yUV 0lbhb7Xw4pcOhP7xqhh6P9tfafoiG55KwT9ZoWy2fGzZ2tTkIwRX5cWWxmAq3UB3EDvt Ag== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2mxn0qbepc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Oct 2018 11:03:27 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9BB3RkY018389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Oct 2018 11:03:27 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9BB3Q4W007130; Thu, 11 Oct 2018 11:03:26 GMT Received: from [10.175.217.19] (/10.175.217.19) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 11 Oct 2018 11:03:26 +0000 Subject: Re: [Xen-devel] [PATCH] xen: drop writing error messages to xenstore To: Juergen Gross , Boris Ostrovsky Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org References: <20181009160959.31076-1-jgross@suse.com> <5126873e-ade5-86b0-4ebf-58cb47c9cbe7@oracle.com> <90ae453c-f018-60d3-b7a9-e69cd39c0777@suse.com> From: Joao Martins Message-ID: <69f2a1ba-2a4b-bb03-7819-f1d0d6294539@oracle.com> Date: Thu, 11 Oct 2018 12:03:24 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9042 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810110108 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/11/2018 06:05 AM, Juergen Gross wrote: > On 10/10/2018 18:57, Boris Ostrovsky wrote: >> On 10/10/18 11:53 AM, Juergen Gross wrote: >>> On 10/10/2018 17:09, Joao Martins wrote: >>>> On 10/09/2018 05:09 PM, Juergen Gross wrote: >>>>> xenbus_va_dev_error() will try to write error messages to Xenstore >>>>> under the error//error node (with something like >>>>> "device/vbd/51872"). This will fail normally and another message >>>>> about this failure is added to dmesg. >>>>> >>>>> I believe this is a remnant from very ancient times, as it was added >>>>> in the first pvops rush of commits in 2007. >>>>> >>>>> So remove the additional message when writing to Xenstore failed as >>>>> a minimum step. >>>>> >>>>> Signed-off-by: Juergen Gross >>>>> --- >>>>> I am considering removing the Xenstore write altogether, but I'm >>>>> not sure it isn't needed e.g. by xend based installations. So please >>>>> speak up in case you know why this write is there. >>>> So this: >>>> >>>> "This will fail normally and another message about this failure is added to dmesg." >>>> >>>> Brings me to the question: What about {stub,driver}domains? Ideally you >>>> shouldn't be looking at domU's dmesg as a control domain no? I can't remember >>>> any other error node, but if something fails e.g. netfront fails to allocate an >>>> unbound event channel - how do you know the cause from the control domain >>>> perspective? >>>> >>>> Irrespective of xend or not: isn't this 'error' node the only one that >>>> propagates error causes per device from domU? >>> What does it help you in dom0 if you have an error message in Xenstore >>> if a frontend driver couldn't do its job? Is there anything you can do >>> as a Xen admin? >> >> The admin may want to know, for example, that a hotplug in the guest failed. > > Shouldn't he ask the guest for that? There are dozens of other possible > problems letting hotplug fail which won't write anything to Xenstore. > But I think nothing stops people from using their own hotplug script that could use this error node (or even something else). > This might be interesting for development/test purposes, but I really > question it to stay in mature code. > You're right in all of it: it doesn't convey the error in a agnostic manner, ATM doesn't report all errors involved in the device setup, and when a xenbus_dev_fatal happens you might end up looking at the guest anyways. But there might be users right now of this node e.g. cases where you have a bunch of known/trusted Linux guests working as backends (which also use this error node, it's not just frontends *I think*) which you would be able to recognize the error messages to inform the admin e.g. maybe QubesOS? It is merely an informative error message node, but it seems better than just a simple XenbusClosed state, with many reasons that it could lead to. Anyhow, just my 2c. Cheers, Joao