From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT16V-0006VA-Kx for qemu-devel@nongnu.org; Wed, 13 Jun 2018 04:26:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT16R-0000WT-N8 for qemu-devel@nongnu.org; Wed, 13 Jun 2018 04:26:07 -0400 Date: Wed, 13 Jun 2018 10:25:56 +0200 From: Cornelia Huck Message-ID: <20180613102556.40293b9c.cohuck@redhat.com> In-Reply-To: <20180612125933.262679-1-borntraeger@de.ibm.com> References: <20180612125933.262679-1-borntraeger@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 1/1] s390x/ipl: Try to detect Linux vs non Linux for initial IPL PSW List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: qemu-devel , qemu-s390x , Thomas Huth , David Hildenbrand , Halil Pasic , Janosch Frank , Alexander Graf , Richard Henderson On Tue, 12 Jun 2018 14:59:33 +0200 Christian Borntraeger wrote: > Right now the IPL device always starts from address 0x10000 (the usual > Linux entry point). To run other guests (e.g. test programs) it is > useful to use the IPL PSW from address 0. We can use the Linux magic > at 0x10008 to decide. > > Signed-off-by: Christian Borntraeger > --- > v3->v4: > - iplpsw-> ipl_psw > - move check for load failures into the non-elf case > - change comment about ipl psw > v2->v3: > - check for iplpsw to avoid assert on file errors > - use 4 bytes at 4 instead of 8 bytes at 0 > v1->v2: > - use LINUX_MAGIC_ADDR define > - use assert for valid iplpsw pointer > - add endianess conversion > hw/s390x/ipl.c | 27 ++++++++++++++++++++++----- > 1 file changed, 22 insertions(+), 5 deletions(-) Thanks, applied.