Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4041233ybl; Mon, 9 Dec 2019 04:33:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwiYqVdT9juZKtxwGr4Q/MMGQGALVdGUYLd0NpzBDtucUfG3hOotzbfsGEyEp8MbB+Swquy X-Received: by 2002:aca:f495:: with SMTP id s143mr17454233oih.118.1575894814114; Mon, 09 Dec 2019 04:33:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575894814; cv=none; d=google.com; s=arc-20160816; b=JvgnMNMpWO+a+7wSJbLinJeelr2uc78droi9aQU8NTCnlFbrm9p1NSzq4BH0Ux5APp 5+s8TPWRcpoY0WrcJ2kgt+tdK2YVT37FZrwhpZvErjI9U/3MkB8D4mcVyUIuH8rY+ibO OGO7R0YkIkoE40Mf/zVWKygaZfMQaJK/WVdXJCQlAvk8E7qTYNdNvuRX27vpGmpjBzxh TGVxF2CWJWwH57h1AcrUNj9gDOMeU4Igg1wFoljAiAz6yodPp/90pAD+nNvUsH6YYHxb N3oeUIr+yT1q84kVyZOB5QVmcJJJA40IOb8uu7Ho93LLjZiwFGIXzZYHIOLTLNtmN5Az AMXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:dkim-signature; bh=I0rScsriszAbZqBXvULjNzsN7eerBCLox2GU8exLLaA=; b=G2Do7+RJDVmpfH7QCm17FTShRFuAN+qZWDTdJZREeK0tacpRAB6a6sD2vWf1S++NqD 7MuGSM9dLrV84ZAVloP7ppIWy0n+eGLFj+tlxXAFuhwRdkIo9u8kfyzD2hkblUS+1LQN V/rdmA7ANP6GjT/yjPmpNSxWhIR2+oSCHrRriPR35XvN79YQ+BdsgGgR/952J1red3v0 5IfwZ7C9bavQCtCMZv9zmqO+Tv1q5wfYcQeIzTKcdi8HYYUNFfwwxIilNxPk53rm3fu/ XmTi1zVCd1JvzXwpqMmQHMIL834RmXW4epAAw3v3GmGoubWphQxAs/I58bsQb7TUlfx/ yCKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=Mq4rx6xz; 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=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l204si11639527oig.31.2019.12.09.04.33.22; Mon, 09 Dec 2019 04:33:34 -0800 (PST) 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=fail header.i=@citrix.com header.s=securemail header.b=Mq4rx6xz; 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=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727398AbfLIMRx (ORCPT + 99 others); Mon, 9 Dec 2019 07:17:53 -0500 Received: from esa3.hc3370-68.iphmx.com ([216.71.145.155]:49186 "EHLO esa3.hc3370-68.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727074AbfLIMRx (ORCPT ); Mon, 9 Dec 2019 07:17:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1575893873; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IdHWmdL89AFTcNn7gde3T6zcfIwKQtkIaBfK83eXzJg=; b=Mq4rx6xzOtoR+R+vK+h+2pJq/jbpfhX06PbZAtfUsnDvbM6V3OKjoa/k /o/QVD3yW4TwVfTwTLaoCOVPr/qWkU4fWgn0Z/4DfND38Ard5MXWIQOh6 +fMXbbNpSFEv7xji3ZrmsD9AwejPY7vUpty9FqDTkSU49liDV2L8Q5rt3 E=; 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: Ey51vp+2KYMhnR/IHTgER0g3Mtxd0Qo8m927IbKqqJ3MMCfmZnXdP4SNrKUaLXuHmz9QoWHU7p tcgVTLvgKK0WrLpkFPm32ByYJQUF0aBX+L3dxNhbw/jq1CrVXlCldWJ4ClvB/AwCl7LJq2Mh57 Ij4dLm6kkHCFszc9mKHAtDhxg974LO2iDrW0auUrHRxoJsqENg9/hBFwKwSWEu3aNn5Jycaace KxcJ27/BOiwciiOK4shXPPIlNzZJnsDhqSQWezGKxmJoaDAcW/Q+YqgoBZY2NAAMPpi6FF1bhu QL4= X-SBRS: 2.7 X-MesageID: 9387524 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,294,1571716800"; d="scan'208";a="9387524" Date: Mon, 9 Dec 2019 13:17:26 +0100 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: Paul Durrant CC: , , "Konrad Rzeszutek Wilk" , Jens Axboe , "Boris Ostrovsky" , Juergen Gross , Stefano Stabellini Subject: Re: [PATCH 4/4] xen-blkback: support dynamic unbind/bind Message-ID: <20191209121726.GU980@Air-de-Roger> References: <20191205140123.3817-1-pdurrant@amazon.com> <20191205140123.3817-5-pdurrant@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20191205140123.3817-5-pdurrant@amazon.com> User-Agent: Mutt/1.12.2 (2019-09-21) X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) 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 Thu, Dec 05, 2019 at 02:01:23PM +0000, Paul Durrant wrote: > By simply re-attaching to shared rings during connect_ring() rather than > assuming they are freshly allocated (i.e assuming the counters are zero) > it is possible for vbd instances to be unbound and re-bound from and to > (respectively) a running guest. > > This has been tested by running: > > while true; do dd if=/dev/urandom of=test.img bs=1M count=1024; done > > in a PV guest whilst running: > > while true; > do echo vbd-$DOMID-$VBD >unbind; > echo unbound; > sleep 5; > echo vbd-$DOMID-$VBD >bind; > echo bound; > sleep 3; > done So this does unbind blkback while leaving the PV interface as connected? Thanks, Roger.