summaryrefslogtreecommitdiffstats
path: root/xen-hvm-stub.c
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2015-11-04 18:40:54 +0100
committerCornelia Huck <cornelia.huck@de.ibm.com>2015-11-11 17:21:38 +0100
commitb498484ed49ab9d1fcada3468f95dda1a5f59366 (patch)
tree6a09ceff242d677ac896de65ab14dafa5fb35e03 /xen-hvm-stub.c
parent3c07587d49458341510360557c849e93e9afaf59 (diff)
downloadhqemu-b498484ed49ab9d1fcada3468f95dda1a5f59366.zip
hqemu-b498484ed49ab9d1fcada3468f95dda1a5f59366.tar.gz
s390x/css: sense data endianness
We keep the device's sense data in a byte array (following the architecture), but the ecws are an array of 32 bit values. If we just blindly copy the values, the sense data will change from de-facto BE data to de-facto cpu-endian data, which means we end up doing an incorrect conversion on LE hosts. Let's just explicitly convert to cpu-endianness while assembling the irb. Reported-by: Andy Lutomirski <luto@kernel.org> Tested-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'xen-hvm-stub.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud