From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5E45C43603 for ; Mon, 9 Dec 2019 17:18:26 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B4294207FF for ; Mon, 9 Dec 2019 17:18:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="fNVrtcTa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B4294207FF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ieMfe-0007wE-LZ; Mon, 09 Dec 2019 17:18:06 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ieMfd-0007w9-JO for xen-devel@lists.xenproject.org; Mon, 09 Dec 2019 17:18:05 +0000 X-Inumbo-ID: dc259bf0-1aa7-11ea-88e7-bc764e2007e4 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id dc259bf0-1aa7-11ea-88e7-bc764e2007e4; Mon, 09 Dec 2019 17:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1575911885; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rkXopByrwPp2sBcRHNchnOCKQcjWZBRVSMRnG3CKxxA=; b=fNVrtcTa0ZsPaBlvf1mwCpwHyNk6KMbzWULYdnrmz7xdmIwnJMrlPVcU nXIcuwH4oghwsjDS9nYz8WcBhxYxAiTSVJWVP/e8aF+lYVInYxwHh940L 3JfVh8b+7BSPQx9fwckN5j3wgGwWMEmno532qfSwv94l9PuOMMmmw6Iu1 k=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: efnx41IuK1BLRB1YOurKYBC7JSe4UINc6kZ+B6IPVi21FZ7VsBIv5Q6cE+Wy0wcGrL//OeIUrf gpJOuVyYbBevHPxeESHEL0VfDKk7oED4f1EZVjKZ+Cj4TDZx3GHic4MiuN5kQfXGgLR8Mo5Hkz yTPp8TBbd8Rf5NY4UgBGWMnaMy/zHff5YF1+OE50DVUzxfQ7g4wgIwExOI3XHoABJK8S5jxz3Q eFizofgeZYJ5QKZQt8RBSag3pjuqHIO3fWd8sOLVmePph/oZKu7p2BtWn+ROYek98hu+4e9RS+ gVQ= X-SBRS: 2.7 X-MesageID: 9407797 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.69,296,1571716800"; d="scan'208";a="9407797" Date: Mon, 9 Dec 2019 18:17:57 +0100 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: "Durrant, Paul" Message-ID: <20191209171757.GC980@Air-de-Roger> References: <20191205140123.3817-1-pdurrant@amazon.com> <20191205140123.3817-3-pdurrant@amazon.com> <20191209113926.GS980@Air-de-Roger> <19b5c2fa36b842e58bbdddd602c4e672@EX13D32EUC003.ant.amazon.com> <20191209122537.GV980@Air-de-Roger> <54e3cd3a42d8418d9a36388315deab13@EX13D32EUC003.ant.amazon.com> <20191209142852.GW980@Air-de-Roger> <20191209151339.GZ980@Air-de-Roger> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To AMSPEX02CL03.citrite.net (10.69.22.127) Subject: Re: [Xen-devel] [PATCH 2/4] xenbus: limit when state is forced to closed X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , "xen-devel@lists.xenproject.org" , Boris Ostrovsky , Stefano Stabellini , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" T24gTW9uLCBEZWMgMDksIDIwMTkgYXQgMDQ6MjY6MTVQTSArMDAwMCwgRHVycmFudCwgUGF1bCB3 cm90ZToKPiA+ID4gSWYgeW91IHdhbnQgdW5iaW5kIHRvIGFjdHVhbGx5IGRvIGEgcHJvcGVyIHVu cGx1ZyB0aGVuIHRoYXQncyBleHRyYSB3b3JrCj4gPiBhbmQgbm90IHJlYWxseSBzb21ldGhpbmcg SSB3YW50IHRvIHRhY2tsZSAoYW5kIHJlLWJpbmQgd291bGQgc3RpbGwgbmVlZCB0bwo+ID4gYmUg dG9vbHN0YWNrIGluaXRpYXRlZCBhcyBzb21ldGhpbmcgd291bGQgaGF2ZSB0byByZS1jcmVhdGUg dGhlIHhlbnN0b3JlCj4gPiBhcmVhKS4KPiA+IAo+ID4gV2h5IGRvIHlvdSBzYXkgdGhlIHhlbnN0 b3JlIGFyZWEgd291bGQgbmVlZCB0byBiZSByZWNyZWF0ZWQ/Cj4gPiAKPiA+IFNldHRpbmcgc3Rh dGUgdG8gY2xvc2VkIHNob3VsZG4ndCBjYXVzZSBhbnkgY2xlYW51cCBvZiB0aGUgeGVuc3RvcmUK PiA+IGFyZWEsIGFzIHRoYXQgc2hvdWxkIGFscmVhZHkgaGFwcGVuIGZvciBleGFtcGxlIHdoZW4g dXNpbmcgcHZncnViCj4gPiBzaW5jZSBpbiB0aGF0IGNhc2UgZ3J1YiBpdHNlbGYgZGlzY29ubmVj dHMgYW5kIGFscmVhZHkgY2F1c2VzIGEKPiA+IHRyYW5zaXRpb24gdG8gY2xvc2VkIGFuZCBhIHJl LWF0dGFjaG1lbnQgYWZ0ZXJ3YXJkcyBieSB0aGUgZ3Vlc3QKPiA+IGtlcm5lbC4KPiA+IAo+IAo+ IEZvciBzb21lIHJlYXNvbiwgd2hlbiBJIG9yaWdpbmFsbHkgdGVzdGVkLCB0aGUgeGVuc3RvcmUg YXJlYSBkaXNhcHBlYXJlZC4gSSBjaGVja2VkIGFnYWluIGFuZCBpdCBkaWQgbm90IHRoaXMgdGlt ZS4gSSBqdXN0IGVuZGVkIHVwIHdpdGggYSBmcm9udGVuZCBzdHVjayBpbiBzdGF0ZSA1IChiZWNh dXNlIGl0IGlzIHRoZSBzeXN0ZW0gZGlzayBhbmQgd29uJ3QgZ28gb2ZmbGluZSkgdHJ5aW5nIHRv IHRhbGsgdG8gYSBub24tZXhpc3RlbnQgYmFja2VuZC4gVXBvbiByZS1iaW5kIHRoZSBiYWNrZW5k IGdvZXMgaW50byBzdGF0ZSA1IChiZWNhdXNlIGl0IHNlZXMgdGhlIDUgaW4gdGhlIGZyb250ZW5k KSBhbmQgbGVhdmVzIHRoZSBndWVzdCB3ZWRnZWQuCgpMaWtlbHkgYmxrZnJvbnQgc2hvdWxkIGdv IGJhY2sgdG8gaW5pdCBzdGF0ZSwgYnV0IGFueXdheSwgdGhhdCdzIG5vdApzb21ldGhpbmcgdGhh dCBuZWVkcyBmaXhpbmcgYXMgcGFydCBvZiB0aGlzIHNlcmllcy4KClRoYW5rcywgUm9nZXIuCgpf X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpYZW4tZGV2ZWwg bWFpbGluZyBsaXN0Clhlbi1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRwczovL2xpc3Rz LnhlbnByb2plY3Qub3JnL21haWxtYW4vbGlzdGluZm8veGVuLWRldmVs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 431FCC43603 for ; Mon, 9 Dec 2019 17:18:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1413D207FF for ; Mon, 9 Dec 2019 17:18:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="hWj2Es/E" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726665AbfLIRSF (ORCPT ); Mon, 9 Dec 2019 12:18:05 -0500 Received: from esa3.hc3370-68.iphmx.com ([216.71.145.155]:1068 "EHLO esa3.hc3370-68.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbfLIRSE (ORCPT ); Mon, 9 Dec 2019 12:18:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1575911884; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rkXopByrwPp2sBcRHNchnOCKQcjWZBRVSMRnG3CKxxA=; b=hWj2Es/EnaIz+WKozJcCLfhY0axG1VSn+G/PzTqOBMfKNc4hDaXAEwiV XdRzUkF36/UPemDe4oWmdmENVjD91Z3RDbuYAoqfPs0ls4FApnJnyG2u6 kncNwE715PsONOk8yAjvE4L6vqrRVuVb58PwrLViYNB4/Y0oGwIE4zgxB 8=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: efnx41IuK1BLRB1YOurKYBC7JSe4UINc6kZ+B6IPVi21FZ7VsBIv5Q6cE+Wy0wcGrL//OeIUrf gpJOuVyYbBevHPxeESHEL0VfDKk7oED4f1EZVjKZ+Cj4TDZx3GHic4MiuN5kQfXGgLR8Mo5Hkz yTPp8TBbd8Rf5NY4UgBGWMnaMy/zHff5YF1+OE50DVUzxfQ7g4wgIwExOI3XHoABJK8S5jxz3Q eFizofgeZYJ5QKZQt8RBSag3pjuqHIO3fWd8sOLVmePph/oZKu7p2BtWn+ROYek98hu+4e9RS+ gVQ= X-SBRS: 2.7 X-MesageID: 9407797 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.69,296,1571716800"; d="scan'208";a="9407797" Date: Mon, 9 Dec 2019 18:17:57 +0100 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: "Durrant, Paul" CC: "linux-kernel@vger.kernel.org" , "xen-devel@lists.xenproject.org" , "Juergen Gross" , Stefano Stabellini , "Boris Ostrovsky" Subject: Re: [Xen-devel] [PATCH 2/4] xenbus: limit when state is forced to closed Message-ID: <20191209171757.GC980@Air-de-Roger> References: <20191205140123.3817-1-pdurrant@amazon.com> <20191205140123.3817-3-pdurrant@amazon.com> <20191209113926.GS980@Air-de-Roger> <19b5c2fa36b842e58bbdddd602c4e672@EX13D32EUC003.ant.amazon.com> <20191209122537.GV980@Air-de-Roger> <54e3cd3a42d8418d9a36388315deab13@EX13D32EUC003.ant.amazon.com> <20191209142852.GW980@Air-de-Roger> <20191209151339.GZ980@Air-de-Roger> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To AMSPEX02CL03.citrite.net (10.69.22.127) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 09, 2019 at 04:26:15PM +0000, Durrant, Paul wrote: > > > If you want unbind to actually do a proper unplug then that's extra work > > and not really something I want to tackle (and re-bind would still need to > > be toolstack initiated as something would have to re-create the xenstore > > area). > > > > Why do you say the xenstore area would need to be recreated? > > > > Setting state to closed shouldn't cause any cleanup of the xenstore > > area, as that should already happen for example when using pvgrub > > since in that case grub itself disconnects and already causes a > > transition to closed and a re-attachment afterwards by the guest > > kernel. > > > > For some reason, when I originally tested, the xenstore area disappeared. I checked again and it did not this time. I just ended up with a frontend stuck in state 5 (because it is the system disk and won't go offline) trying to talk to a non-existent backend. Upon re-bind the backend goes into state 5 (because it sees the 5 in the frontend) and leaves the guest wedged. Likely blkfront should go back to init state, but anyway, that's not something that needs fixing as part of this series. Thanks, Roger.