[PATCH v3 0/2] scsi-disk: Add FUA write support

Alberto Faria posted 2 patches 6 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250502121115.3613717-1-afaria@redhat.com
Maintainers: Eduardo Habkost <eduardo@habkost.net>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Yanan Wang <wangyanan55@huawei.com>, Zhao Liu <zhao1.liu@intel.com>, Paolo Bonzini <pbonzini@redhat.com>, Fam Zheng <fam@euphon.net>
hw/core/machine.c   |  4 +++-
hw/scsi/scsi-disk.c | 55 +++++++++++++--------------------------------
2 files changed, 19 insertions(+), 40 deletions(-)
[PATCH v3 0/2] scsi-disk: Add FUA write support
Posted by Alberto Faria 6 months, 2 weeks ago
Add scsi-disk support for Force Unit Access (FUA) writes. The first patch lets
us avoid FUA emulation when the underlying driver supports it natively. The
second patch makes scsi-disk devices advertise FUA support by default.

v3:
- Restore flush on VERIFY.
- Modify hw_compat_10_0 instead of hw_compat_9_2.

v2:
- Drop FUA write emulation logic since the block layer already does that.
- Add machine type compat for "dpofua".

Alberto Faria (2):
  scsi-disk: Add native FUA write support
  scsi-disk: Advertise FUA support by default

 hw/core/machine.c   |  4 +++-
 hw/scsi/scsi-disk.c | 55 +++++++++++++--------------------------------
 2 files changed, 19 insertions(+), 40 deletions(-)

-- 
2.49.0
Re: [PATCH v3 0/2] scsi-disk: Add FUA write support
Posted by Kevin Wolf 6 months ago
Am 02.05.2025 um 14:11 hat Alberto Faria geschrieben:
> Add scsi-disk support for Force Unit Access (FUA) writes. The first patch lets
> us avoid FUA emulation when the underlying driver supports it natively. The
> second patch makes scsi-disk devices advertise FUA support by default.
> 
> v3:
> - Restore flush on VERIFY.
> - Modify hw_compat_10_0 instead of hw_compat_9_2.
> 
> v2:
> - Drop FUA write emulation logic since the block layer already does that.
> - Add machine type compat for "dpofua".
> 
> Alberto Faria (2):
>   scsi-disk: Add native FUA write support
>   scsi-disk: Advertise FUA support by default

Thanks, applied to the block branch.

Kevin