From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: 10s shutdown delay for PV guests with PCI passthrough Date: Fri, 18 Jul 2014 14:45:06 -0400 Message-ID: <20140718184506.GD15947@laptop.dumpdata.com> References: <323082597.20140717154104@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <323082597.20140717154104@gmail.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: Simon Martin Cc: Ian Campbell , George Dunlap , Ian Jackson , "xen-devel@lists.xen.org" , David Vrabel , xen-users@lists.xenproject.org, Boris Ostrovsky , Atom2 , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Thu, Jul 17, 2014 at 03:41:04PM +0100, Simon Martin wrote: > Hi all, > > I'm not sure whether this is related to Atom2's post "substantial > shutdown delay for PV guests with PCI -passthrough", I didn't see any > resolution to it and I am seeing something similar, but slightly > different. > > I get a 10s delay shutting down my PV, I have implemented the code as > I see it in mini-os: > > 1.- frontend sets state XenbusStateClosing and waits for backend to go > to state >= XenbusStateClosing. > > 2.- frontend sets state XenbusStateClosed and waits for backend to go > to state >= XenbusStateClosed Right. > > 3.- frontend set state XenbusStateInitialising and waits for frontend > to go to a state in the interval [XenbusStateInitWait, > XenbusStateClosed). > > If I perform step 3 then the frontend never exits as the backend state > stays at XenbusStateClosed It looks like there is no code for XenbusStateInitialising so it just ignores it. There is a state for XenbusStateInitialised. > > If I do not perform step 3 then PV shutsdown after a 10s timeout. How does it shutdown? What causes the shutdown? > > Is this mini-os implementation in sync with the pciback > implementation? Is there a step I have missed? > > -- > Best regards, > Simon mailto:furryfuttock@gmail.com > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel