From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSmBd-0001rS-KX for qemu-devel@nongnu.org; Wed, 05 Jul 2017 11:25:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSmBZ-00012G-FE for qemu-devel@nongnu.org; Wed, 05 Jul 2017 11:25:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46420) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dSmBZ-00011I-8r for qemu-devel@nongnu.org; Wed, 05 Jul 2017 11:25:49 -0400 From: Thomas Huth Date: Wed, 5 Jul 2017 17:25:45 +0200 Message-Id: <1499268345-12552-1-git-send-email-thuth@redhat.com> Subject: [Qemu-devel] [PATCH] hw/s390x/ipl: Fix endianness problem with netboot_start_addr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Christian Borntraeger , Cornelia Huck Cc: Alexander Graf The start address has to be stored in big endian byte order in the iplb.ccw block for the guest. Signed-off-by: Thomas Huth --- hw/s390x/ipl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index 4e6469d..cc36003 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -418,7 +418,7 @@ void s390_ipl_prepare_cpu(S390CPU *cpu) error_report_err(err); vm_stop(RUN_STATE_INTERNAL_ERROR); } - ipl->iplb.ccw.netboot_start_addr = ipl->start_addr; + ipl->iplb.ccw.netboot_start_addr = cpu_to_be64(ipl->start_addr); } } -- 1.8.3.1