From: Ian Jackson Subject: [PATCH v5] xenstore: extend the xenstore ring with a 'closing' signal Date: Fri, 26 Sep 2014 15:00:33 +0100 Message-ID: <21541.29057.213163.22359@mariner.uk.xensource.com> References: <1411657121-23540-1-git-send-email-dave.scott@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XXW4g-0001BB-Gz for xen-devel@lists.xenproject.org; Fri, 26 Sep 2014 14:00:42 +0000 In-Reply-To: <1411657121-23540-1-git-send-email-dave.scott@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Scott Cc: dev@zheng.li, ian.campbell@citrix.com, anil@recoil.org, Andrew.Cooper3@citrix.com, Jonathan.Ludlam@citrix.com, yanqiangjun@huawei.com, Paul.Durrant@citrix.com, john.liuqiming@huawei.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org David Scott writes ("[PATCH v5] xenstore: extend the xenstore ring with a 'closing' signal"): > Hvmloader uses the xenstore ring and then tries to reset it back > to its initial state before booting the guest. Occasionally xenstored > will read the ring while it is being zeroed and conclude it has > been corrupted. This prevents PV drivers from loading in the guest. > > This patch updates the xenstore ring protocol definition, enabling > a server to advertise additional features to the guest. One such feature > is defined: the ability to cleanly reset the ring including the > higher-level protocol, like an enhanced RESET_WATCHES for rings. > > This patch implements the ring reconnection features in oxenstored > and hvmloader, fixing the bug. > > This patch also defines an 'invalid' xenstore packet type and uses this > to poison the ring over a reconnect. This will make diagnosing this > bug much easier in future. > > Signed-off-by: David Scott Acked-by: Ian Jackson I'm happy to take this from you without really reviewing the ocaml code. To be applied this needs a freeze exception. You should make the case (explaining why the feature is important and why it is low risk) to Konrad. Ian.