From: Eric Blake Subject: Re: [Qemu-devel] [PATCH v2] event: Add source information to SHUTDOWN Date: Thu, 20 Apr 2017 13:12:19 -0500 Message-ID: <65718a2d-c866-09a9-b60c-69a6b9a263fd@redhat.com> References: <20170419222258.13415-1-eblake@redhat.com> <87k26fffxa.fsf@dusky.pond.sub.org> <20170420120922.GJ20955@redhat.com> <1f4e72ed-fab1-7099-768e-2a111df3a633@redhat.com> <87r30n83d1.fsf@dusky.pond.sub.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="30j48tWkATCMtRibvP1ewUFpnIoeIFhgu" Cc: "Daniel P. Berrange" , Peter Maydell , "open list:Overall" , "Michael S. Tsirkin" , Mark Cave-Ayland , qemu-devel@nongnu.org, Scott Wood , Gerd Hoffmann , "Edgar E. Iglesias" , Rob Herring , Stefano Stabellini , Magnus Damm , Alexander Graf , Christian Borntraeger , Anthony Perard , "open list:X86" , Richard Henderson , Artyom Tarasenko , Eduardo Habkost Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43816 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S971655AbdDTSMe (ORCPT ); Thu, 20 Apr 2017 14:12:34 -0400 In-Reply-To: <87r30n83d1.fsf@dusky.pond.sub.org> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --30j48tWkATCMtRibvP1ewUFpnIoeIFhgu Content-Type: multipart/mixed; boundary="snqE1hFhpF4u0UbwfHPgj6NtPSrNAG0Pj"; protected-headers="v1" From: Eric Blake To: Markus Armbruster Cc: "Daniel P. Berrange" , Peter Maydell , "open list:Overall" , "Michael S. Tsirkin" , Mark Cave-Ayland , qemu-devel@nongnu.org, Scott Wood , Gerd Hoffmann , "Edgar E. Iglesias" , Rob Herring , Stefano Stabellini , Magnus Damm , Alexander Graf , Christian Borntraeger , Anthony Perard , "open list:X86" , Richard Henderson , Artyom Tarasenko , Eduardo Habkost , Stefan Weil , Alistair Francis , "open list:Calxeda Highbank" , Jan Kiszka , Igor Mammedov , Cor nelia Huck , David Gibson , Paul Burton , Max Filippov , Marcelo Tosatti , Michael Walle , "open list:New World" , Yongbok Kim , Paolo Bonzini , Aurelien Jarno Message-ID: <65718a2d-c866-09a9-b60c-69a6b9a263fd@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] event: Add source information to SHUTDOWN References: <20170419222258.13415-1-eblake@redhat.com> <87k26fffxa.fsf@dusky.pond.sub.org> <20170420120922.GJ20955@redhat.com> <1f4e72ed-fab1-7099-768e-2a111df3a633@redhat.com> <87r30n83d1.fsf@dusky.pond.sub.org> In-Reply-To: <87r30n83d1.fsf@dusky.pond.sub.org> --snqE1hFhpF4u0UbwfHPgj6NtPSrNAG0Pj Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04/20/2017 11:12 AM, Markus Armbruster wrote: >>> Well technically /usr/sbin/halt just terminates all processes / kerne= l and >>> halts CPUs, but the virtual machine is still active (and a 'reset' in= the >>> monitor can start it again. /usr/sbin/poweroff is what actually does = the >>> ACPI poweroff to trigger QEMU to exit[1] >> >> I'm thinking of this wording: >> >> triggered by a guest request (such as the guest running >> /usr/sbin/poweroff to trigger an ACPI shutdown or machine halt instruc= tion) >=20 > A quick glance at the patch suggests the instructions in question are > typically writes to some device register. I wouldn't call them "halt > instructions", in particular since there's the x86 "hlt" instruction > that does something else. Then maybe: a guest request (such as the guest running /usr/sbin/poweroff to trigger an ACPI or other hardware-specific shutdown sequence) --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --snqE1hFhpF4u0UbwfHPgj6NtPSrNAG0Pj-- --30j48tWkATCMtRibvP1ewUFpnIoeIFhgu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJY+PoDAAoJEKeha0olJ0NqInsH/1pcxnHBUPsEeRlLCD2Z78MC 1oHlpynEqi/qskZ2R/V1xPziwCKKyq/n6XplCn743NZ9mq8fp7cV9pvkdh0HbmyW zCaSum4FcBRsoyClfBd9SZd6KowRpbYNdvT023naU84ppRvwSkdkxraMT4Vv+9/f /N4wXenMxPl/dxaFL3E/n9cXDggXQM+C0j4Sl1vf25pAMnCZhDt2nyM/KCiBzt+q FFH1DfJVO0E6WL+c25q5FmZz4BL6CYRYh50neQxAcTT89GhPQbpGyd8aFvlDbTqi VAGdfTJNgD2nRKXShoDeAEGgh9b8QyA2eb+76W+aaGsQkYnO5x1Qh+qYuLWy15Y= =18eE -----END PGP SIGNATURE----- --30j48tWkATCMtRibvP1ewUFpnIoeIFhgu--