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(-) --- base-commit: 29c042c6e9d4a09d4a0ac3fa54aeb7ee08ce0bdc change-id: 20260605-pvscsi-endianness-c0d389d8274e Best regards, -- Miao Wang <[email protected]>
