On 7/9/26 22:21, Miao Wang via B4 Relay wrote:
This patch series fixes the endianness issues in the pvscsi device
emulation and clarfies the endianness of pvscsi data structures.
Signed-off-by: Miao Wang <[email protected]>
---
Changes in v3:
- Remove the unnecessary struct keyword for the structs that have
been already typedef-ed.
- Add a comment in vmw_pvscsi.h to explain the endianness of pvscsi
data structures.
- Link to v2:
https://lore.kernel.org/qemu-devel/[email protected]
Changes in v2:
- Assume pvscsi is little-endian instead of native-endian, and thus
replace tswap*() with le*_to_cpu() and cpu_to_le*() to convert the
endianness of pvscsi data structures to/from CPU endianness.
- Link to v1:
https://lore.kernel.org/qemu-devel/[email protected]
---
Miao Wang (2):
pvscsi: translate data endianness
pvscsi: add a comment to explain the endianness
hw/scsi/vmw_pvscsi.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++-
hw/scsi/vmw_pvscsi.h | 14 +++++++++++++
2 files changed, 70 insertions(+), 1 deletion(-)
I'm picking this up for qemu-stable (with reverse API conversion), since
this issue affects older releases too, and because we want to make the
(new) rules explicit.
Please let me know if I shouldn't.
Thanks,
/mjt