From: Ian Campbell Subject: Re: Early ACPI events prevent subsequent ACPI functionality on xen 4.3 + HVM domU Date: Tue, 21 May 2013 20:58:09 +0100 Message-ID: <1369166289.12438.47.camel@dagon.hellion.org.uk> References: <752956577.8634488.1368537190555.JavaMail.root@zimbra002> <1368812151.24012.66.camel@hastur.hellion.org.uk> <71194FD00ABB7415DD6106AA@nimrod.local> <1369146037.21246.89.camel@zakaz.uk.xensource.com> <519B85FA.6060809@eu.citrix.com> <1369147368.21246.91.camel@zakaz.uk.xensource.com> <6FB4516F0E9B0F43B54F88D855ABB79012F62A@LONPEX01CL03.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6FB4516F0E9B0F43B54F88D855ABB79012F62A@LONPEX01CL03.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dave Scott Cc: Stefano Stabellini , George Dunlap , Konrad Wilk , "xen-devel@lists.xen.org" , Paul Durrant , Alex Bligh , Anthony Perard , Diana Crisan List-Id: xen-devel@lists.xenproject.org On Tue, 2013-05-21 at 17:51 +0100, Dave Scott wrote: > For a long time our test cases have had a 'sleep 10' after a 'xe > vm-start' and before a 'xe vm-shutdown'. IIRC when I last looked into > this (years ago) it was claimed that the PV kernel was trying to > signal init to change runlevel, but it was too soon and the > event/signal/whatever was dropped. Recently to speed up the tests > we've started switching to a custom miniOS kernel (based on Mirage) > which doesn't have this problem. However it would be great to finally > fix this race... Oh yes, this is true -- there is an issue with the guest internal (so ~= native) shutdown stuff not working if you signal it too early. i.e. you are confusing /sbin/init and not anything Xen specific. I expect that the way to determine this would be to check if the xenstore key was "" or "something". If it is blank then the guest has acknowledged the request and the fault is /sbin/init otherwise it is a Xen specific issue, probably internal to the kernel though IMHO. Ian.