From: Guido Guenther Subject: Re: [PATCH] system_powerdown via acpi power button Date: Tue, 22 Jan 2008 12:49:55 +0100 Message-ID: <20080122114955.GA28335@bogon.ms20.nix> References: <20080103181132.GA1077@bogon.ms20.nix> <4795C134.7030400@siemens.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1016895705==" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Avi Kivity To: Jan Kiszka Return-path: In-Reply-To: <4795C134.7030400-kv7WeFo6aLtBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org --===============1016895705== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 22, 2008 at 11:11:00AM +0100, Jan Kiszka wrote: > #if defined(TARGET_I386) > void qemu_system_powerdown(void) > { > + if (!pm_state) > + exit(0); > if(pm_state->pmen & PWRBTN_EN) { > pm_state->pmsts |=3D PWRBTN_EN; > pm_update_sci(pm_state); This totally defeats the "clean shutdown" purpose of system_powerdown. Think of it like:=20 system_powerdown: hint the system to shutdown cleanly SIGTERM: kill the vm This is how things are wired up in libvirt at the moment. Cheers, -- Guido --envbJBWh7q8WU6mo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHldhjn88szT8+ZCYRAq4/AJ9vCveV5ORYHQmmBdFL65C4Cq73iwCdEa7A yWkdstuv5d0t2PJbHlUPugE= =olNB -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo-- --===============1016895705== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============1016895705== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --===============1016895705==--