Commit 1045e3cd authored by Thomas Huth's avatar Thomas Huth Committed by Christian Borntraeger
Browse files

hw/s390x/ipl: Fix endianness problem with netboot_start_addr



The start address has to be stored in big endian byte order
in the iplb.ccw block for the guest.

Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
Message-Id: <1499268345-12552-1-git-send-email-thuth@redhat.com>
Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
parent cda3c19f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }
}