From: Dave Scott Subject: Re: [PATCH v5] xenstore: extend the xenstore ring with a 'closing' signal Date: Fri, 26 Sep 2014 14:06:31 +0000 Message-ID: <81EDC2A5-49DB-498A-8765-8B761DAF49C7@citrix.com> References: <1411657121-23540-1-git-send-email-dave.scott@citrix.com> <21541.29057.213163.22359@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XXWAL-0001fE-Mi for xen-devel@lists.xenproject.org; Fri, 26 Sep 2014 14:06:33 +0000 In-Reply-To: <21541.29057.213163.22359@mariner.uk.xensource.com> Content-Language: en-US Content-ID: <7FEB8203DAC3E942A96B8C0C6CE9006C@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: Ian Jackson Cc: Zheng Li , Ian Campbell , Anil Madhavapeddy , Andrew Cooper , Jonathan Ludlam , "yanqiangjun@huawei.com" , Paul Durrant , "john.liuqiming@huawei.com" , "xen-devel@lists.xenproject.org" List-Id: xen-devel@lists.xenproject.org On 26 Sep 2014, at 15:00, Ian Jackson wrote: > 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 Thanks! > I'm happy to take this from you without really reviewing the ocaml > code. Jon: could you take another look at the OCaml code? It=92s slightly modified from the previous one you reviewed. This version allows the Reconnect exception to bubble up to the oxenstored connection handler and allows oxenstored to reset all the state (ring, requests, watches, transactions etc) = > 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. Understood. Cheers, Dave