From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOZJd-0006RA-IC for qemu-devel@nongnu.org; Wed, 08 Jul 2009 11:44:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOZJY-0006Jo-ED for qemu-devel@nongnu.org; Wed, 08 Jul 2009 11:44:12 -0400 Received: from [199.232.76.173] (port=59030 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOZJX-0006Ia-JJ for qemu-devel@nongnu.org; Wed, 08 Jul 2009 11:44:07 -0400 Received: from e37.co.us.ibm.com ([32.97.110.158]:59029) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MOZJW-00011K-LM for qemu-devel@nongnu.org; Wed, 08 Jul 2009 11:44:06 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e37.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n68FhFZJ028619 for ; Wed, 8 Jul 2009 09:43:15 -0600 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n68FhxSI149092 for ; Wed, 8 Jul 2009 09:43:59 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n68FhwaX023352 for ; Wed, 8 Jul 2009 09:43:58 -0600 Date: Wed, 8 Jul 2009 10:43:49 -0500 From: Ryan Harper Subject: Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot Message-ID: <20090708154349.GT11590@us.ibm.com> References: <20090707192631.GQ11590@us.ibm.com> <20090708075601.GJ28046@redhat.com> <4A549990.2060205@us.ibm.com> <20090708132623.GN26640@redhat.com> <4A54A367.3010603@us.ibm.com> <20090708135607.GO26640@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090708135607.GO26640@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Anthony Liguori , Ryan Harper , qemu-devel@nongnu.org, Gleb Natapov * Daniel P. Berrange [2009-07-08 08:58]: > On Wed, Jul 08, 2009 at 08:47:19AM -0500, Anthony Liguori wrote: > > Daniel P. Berrange wrote: > > > > > >Only other option I think of is a pure paravirt shutdown/reboot > > >handler, ala Xen. That sucks in different ways though, namely > > >needing a driver in the guest, which is probably worse. > > > > > > > What do you think about Avi's suggestion of using -no-shutdown, doing a > > system_powerdown, waiting to receive a powerdown (you can poll 'info > > status' too to see when you entered into the paused state), and then > > doing a system_reset? I'd suggesting doing a timeout too while waiting > > to avoid waiting forever. > > That suffers from the same problem as a system_reboot command in that > the guest may never start the shutdown. If that's an acceptable > limitation, then we might as well implement it directly in QEMU as > system_reboot so its easily available to everyone. Make 'system_reboot' > take an optional timeout arg (default to 60 seconds) after which it > cancels its plans. This seems the most reasonable thing to me. As already mentioned, system_powerdown already is non-deterministic since the guest could ignore the ACPI event. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx ryanh@us.ibm.com