From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ7e2-0005K9-AN for qemu-devel@nongnu.org; Sun, 21 Oct 2012 22:21:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQ7e1-0007am-2K for qemu-devel@nongnu.org; Sun, 21 Oct 2012 22:21:34 -0400 Date: Mon, 22 Oct 2012 13:15:08 +1100 From: David Gibson Message-ID: <20121022021508.GE28515@truffula.fritz.box> References: <1350539437-535-1-git-send-email-david@gibson.dropbear.id.au> <1350539437-535-4-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1350539437-535-4-git-send-email-david@gibson.dropbear.id.au> Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH 03/15] pseries: Implement qemu initiated shutdowns using EPOW events List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraf@suse.de Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org On Thu, Oct 18, 2012 at 04:50:25PM +1100, David Gibson wrote: > At present, using 'system_powerdown' from the monitor or otherwise > instructing qemu to (cleanly) shut down a pseries guest will not work, > because we did not have a method of signalling the shutdown request to the > guest. > > PAPR does include a usable mechanism for this, though it is rather more > involved than the equivalent on x86. This involves sending an EPOW > (Environmental and POwer Warning) event through the PAPR event and error > logging mechanism, which also has a number of other functions. > > This patch implements just enough of the event/error logging functionality > to be able to send a shutdown event to the guest. At least with modern > guest kernels and a userspace that is up and running, this means that > system_powerdown from the qemu monitor should now work correctly on pseries > guests. > > Signed-off-by: David Gibson Ugh, don't apply this version. When I applied Blue's changes I didn't test properly and completely broke it. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson