From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWIrF-0002kB-EF for qemu-devel@nongnu.org; Fri, 22 Jun 2018 05:59:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWIrB-0006Wg-JS for qemu-devel@nongnu.org; Fri, 22 Jun 2018 05:59:57 -0400 References: <20180621170143.113370-1-borntraeger@de.ibm.com> <20180622114659.7858fe00.cohuck@redhat.com> From: Paolo Bonzini Message-ID: <56c5193d-b116-93ae-af96-509fab9e1381@redhat.com> Date: Fri, 22 Jun 2018 11:59:49 +0200 MIME-Version: 1.0 In-Reply-To: <20180622114659.7858fe00.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 1/1] s390/ipl: fix ipl with -no-reboot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck , Christian Borntraeger Cc: qemu-devel , qemu-s390x , Thomas Huth , David Hildenbrand , Halil Pasic , Janosch Frank , Alexander Graf , Richard Henderson On 22/06/2018 11:46, Cornelia Huck wrote: >>> Ok, then my suggestion made even more sense. :) No other objections >>> apart from the name of the constant. >>> >>> Paolo =20 >> SHUTDOWN_CAUSE_S390_PARTIAL ? > Don't like that one much. >=20 >> SHUTDOWN_CAUSE_S390_SUBSYS_RESET? > Either that, or drop the 'S390' (is it conceivable that other > architectures have something similar)? >=20 I don't know exactly what is going on here, so I'm not very suited to answer this. The difference just from reading the C code seems to be that it calls s390_cpu_load_normal instead of s390_ipl_prepare_cpu, and that it calls subsystem_reset instead of qemu_devices_reset. For a more generic name I'd go with SHUTDOWN_CAUSE_OS_BOOT (or OS_BOOTING, or BOOT_OS), but an s390-specific name is of course fine as well, especially if you have a specific moniker for the "thing that IPL gives control to". Paolo