All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] Support for Zoned UFS
@ 2026-11-26  2:02 ` Daejun Park via B4 Relay
  0 siblings, 0 replies; 13+ messages in thread
From: Daejun Park @ 2026-11-26  2:02 UTC (permalink / raw)
  To: qemu-devel
  Cc: Jeuk Kim, Paolo Bonzini, Fam Zheng, Kevin Wolf, Hanna Reitz,
	qemu-block, Fabiano Rosas, Laurent Vivier, Pierrick Bouvier,
	Niklas Cassel, Damien Le Moal, Sam Li, Stefan Hajnoczi,
	Stanley Jhu, Keoseong Park, Daejun Park

This series makes a ufs-lu on a host-managed zoned qcow2 image a ZBC
host-managed device, so that f2fs and other zoned software can be
tested on UFS. As Niklas asked [1], the zones live in the image and the
logical unit uses the zoned block layer API.

The ZBC commands are emulated in hw/ufs on top of scsi-hd, which stays
a direct-access device, as scsi-disk serves its mode and VPD pages to
those only. They can move to scsi-disk if the SCSI maintainers prefer.

Tested with the UFS qtests (also under ASan and UBSan) and Linux 7.3-rc7
and android17-6.18 guests, legacy doorbell and MCQ: fio --zonemode=zbd
with verification, blkzone, sg_raw, and f2fs on android17-6.18. One
early android17-6.18 MCQ run retried unaligned writes (data verified),
fourteen later ones did not. Zoned host block devices are untested.

Two qcow2 v18 problems show with qemu-io alone. With detect-zeroes
on, a zero write at the write pointer does not move it, so the next
write fails as unaligned. A resized zoned image overflows its write
pointer table on a write past the old end, and qemu-img resize leaves
it unopenable.

Based-on: <20261124085529.1537572-1-cassel@kernel.org>

Changes in v4:
- Keep the zones in the image and use the zoned block layer API
  (Niklas). Drop the zoned properties and v3's Reviewed-by tags.
- Add patches 1 and 2 for the active zone limit and zone errors.
- Drop patches 1-3 of v3, which are in master.
- Link to v3: https://lore.kernel.org/qemu-devel/20261020001647epcms2p52cd58173164a43e252c33a3eb5935dc8@epcms2p5

[1] https://lore.kernel.org/qemu-devel/at9P9OWMQUQR501_@ryzen

---
Daejun Park (5):
      block: add an accessor for the active zone limit
      scsi-disk: Report zone errors with their ZBC sense codes
      docs/system: Document zoned UFS logical units
      hw/ufs: Support for Zoned UFS
      tests/qtest: Add tests for Zoned UFS

 block/block-backend.c             |   11 +
 docs/system/devices/ufs.rst       |   50 ++
 hw/scsi/scsi-disk.c               |   11 +-
 hw/ufs/lu.c                       |  886 ++++++++++++++++++++-
 hw/ufs/trace-events               |    5 +
 hw/ufs/ufs.c                      |   16 +
 hw/ufs/ufs.h                      |    8 +
 include/block/ufs.h               |   15 +
 include/scsi/utils.h              |    1 +
 include/system/block-backend-io.h |    1 +
 scsi/utils.c                      |   28 +
 tests/qtest/ufs-test.c            | 1587 +++++++++++++++++++++++++++++++++++++
 12 files changed, 2609 insertions(+), 10 deletions(-)
---
base-commit: ca3b685586976cc2a9b759c1e7ab7c184e5aed34
change-id: 20261126-zoned-ufs-v4b-d0aa9a940b4d

Best regards,
-- 
Daejun Park <daejun7.park@samsung.com>


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-11-26  8:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26  2:02 [PATCH v4 0/5] Support for Zoned UFS Daejun Park
2026-11-26  2:02 ` Daejun Park via B4 Relay
2026-11-26  2:02 ` [PATCH v4 1/5] block: add an accessor for the active zone limit Daejun Park
2026-11-26  2:02   ` Daejun Park via B4 Relay
2026-11-26  2:02 ` [PATCH v4 2/5] scsi-disk: Report zone errors with their ZBC sense codes Daejun Park
2026-11-26  2:02   ` Daejun Park via B4 Relay
2026-11-26  2:02 ` [PATCH v4 3/5] docs/system: Document zoned UFS logical units Daejun Park
2026-11-26  2:02   ` Daejun Park via B4 Relay
2026-11-26  2:02 ` [PATCH v4 4/5] hw/ufs: Support for Zoned UFS Daejun Park
2026-11-26  2:02   ` Daejun Park via B4 Relay
2026-11-26  2:02 ` [PATCH v4 5/5] tests/qtest: Add tests " Daejun Park
2026-11-26  2:02   ` Daejun Park via B4 Relay
2026-11-26  8:25 ` [PATCH v4 0/5] Support " Niklas Cassel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.