From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH v9 4/5] shutdown: Add source information to SHUTDOWN and RESET Date: Tue, 16 May 2017 10:46:57 +0200 Message-ID: <87y3txfata.fsf@dusky.pond.sub.org> References: <20170515214114.15442-1-eblake@redhat.com> <20170515214114.15442-5-eblake@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Cc: qemu-devel@nongnu.org, Peter Maydell , "open list\:Overall" , "Michael S. Tsirkin" , Mark Cave-Ayland , Alexander Graf , Yongbok Kim , Gerd Hoffmann , "Edgar E. Iglesias" , Rob Herring , Stefano Stabellini , Magnus Damm , Christian Borntraeger , Anthony Perard , "open list\:X86" , Richard Henderson , Artyom Tarasenko , Eduardo Habkost , Stefan Weil , alistai To: Eric Blake Return-path: Received: from mx1.redhat.com ([209.132.183.28]:54802 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300AbdEPIrR (ORCPT ); Tue, 16 May 2017 04:47:17 -0400 In-Reply-To: <20170515214114.15442-5-eblake@redhat.com> (Eric Blake's message of "Mon, 15 May 2017 16:41:13 -0500") Sender: kvm-owner@vger.kernel.org List-ID: Eric Blake writes: > Time to wire up all the call sites that request a shutdown or > reset to use the enum added in the previous patch. > > It would have been less churn to keep the common case with no > arguments as meaning guest-triggered, and only modified the > host-triggered code paths, via a wrapper function, but then we'd > still have to audit that I didn't miss any host-triggered spots; > changing the signature forces us to double-check that I correctly > categorized all callers. > > Since command line options can change whether a guest reset request > causes an actual reset vs. a shutdown, it's easy to also add the > information to reset requests. > > Signed-off-by: Eric Blake > Acked-by: David Gibson [ppc parts] > Reviewed-by: Mark Cave-Ayland [SPARC part] > Reviewed-by: Cornelia Huck [s390x parts] > > --- > v8: rebase later in series That turned out nicely. Thanks! Reviewed-by: Markus Armbruster