提交 1045e3cd 编写于 作者: T Thomas Huth 提交者: Christian Borntraeger

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: NThomas Huth <thuth@redhat.com>
Message-Id: <1499268345-12552-1-git-send-email-thuth@redhat.com>
Reviewed-by: NCornelia Huck <cohuck@redhat.com>
Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
上级 cda3c19f
...@@ -418,7 +418,7 @@ void s390_ipl_prepare_cpu(S390CPU *cpu) ...@@ -418,7 +418,7 @@ void s390_ipl_prepare_cpu(S390CPU *cpu)
error_report_err(err); error_report_err(err);
vm_stop(RUN_STATE_INTERNAL_ERROR); 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);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册