[PATCH v3 0/2] pvscsi: fix endianness issues

Miao Wang via B4 Relay posted 2 patches 2 days, 4 hours ago
Failed in applying to current master (apply log)
hw/scsi/vmw_pvscsi.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++-
hw/scsi/vmw_pvscsi.h | 14 +++++++++++++
2 files changed, 70 insertions(+), 1 deletion(-)
[PATCH v3 0/2] pvscsi: fix endianness issues
Posted by Miao Wang via B4 Relay 2 days, 4 hours ago
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 <shankerwangmiao@gmail.com>
---
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/20260710-pvscsi-endianness-v2-1-c512e6c8849b@gmail.com

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/20260605-pvscsi-endianness-v1-1-b0bf472b0f59@gmail.com

---
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 <shankerwangmiao@gmail.com>