From: Sander Eikelenboom Subject: Re: [PATCH 0 of 5] xl shutdown compatibility with xm Date: Mon, 15 Oct 2012 13:21:40 +0200 Message-ID: <751865457.20121015132140@eikelenboom.it> References: <692244188.20121015123235@eikelenboom.it> <1350297477.18058.27.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1350297477.18058.27.camel@zakaz.uk.xensource.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 Campbell Cc: Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Monday, October 15, 2012, 12:37:57 PM, you wrote: > On Mon, 2012-10-15 at 11:32 +0100, Sander Eikelenboom wrote: >> Hi Ian, >> >> Great thanks ! >> Only thing i was wondering about: >> >> Shouldn't the "-F" option be dropped in favour of always trying the >> "acpi fallback" when the pv shutdown fails. >> >> This because the shutdown scripts still don't work for domains without >> pv shutdown and i don't see a down side to just trying that as >> fallback. > It is guess OS dependent what the ACPI button press event does, it can > reboot, shutdown or hibernate etc depending on the OS type and its > configuration. (in theory I suppose it is completely arbitrary e.g. it > could be configured to eject the CD-ROM or something equally random). > Therefore the user needs to be aware of when they can safely use it. Well yes and no: - can't remember having (to make) that choice with xm ? - On shutdown with xl as toolstack and when the guest doesn't support pv shutdown, the init.d/xendomains script doesn't even attempt to shutdown this guest by acpi fallback. - As a result when using xl as toolstack, the guest is terminated non gracefully when the whole machine finally shutsdown, which seems less desirable then at least *trying* to shut it down gracefully by using the acpi button. > Ian.