[PATCH 00/13] hw/ide: add missing features required for SATA

Niklas Cassel posted 13 patches 6 hours ago
hw/ide/ahci-internal.h    |   8 +
hw/ide/ahci.c             | 219 ++++++++++--
hw/ide/core.c             | 689 ++++++++++++++++++++++++++++++++++---
hw/ide/ide-internal.h     |  44 ++-
hw/ide/trace-events       |   2 +
include/hw/ide/ide-dev.h  |  22 ++
tests/qtest/ahci-test.c   | 708 ++++++++++++++++++++++++++++++++++++++
tests/qtest/ide-test.c    |   5 +
tests/qtest/libqos/ahci.c |  40 ++-
tests/qtest/libqos/ahci.h |  18 +-
10 files changed, 1682 insertions(+), 73 deletions(-)
[PATCH 00/13] hw/ide: add missing features required for SATA
Posted by Niklas Cassel 6 hours ago
This series implements mandatory features that should be implemented by
a SATA disk:

-Sense data reporting
-General Purpose Logging
-NCQ Command Error log
-SATA NCQ Send and Receive log
-Serial ATA page of the IDENTIFY DEVICE data log

All these features are added so that we eventually can add ZAC (Zoned
device ATA Command set) support, which requires all this to e.g. report
sense data unaligned write command when not writing at the write pointer.

However, all patches in this series are unrelated to ZAC and can be
accepted as is. E.g. this series adds a range check and reports sense data
LOGICAL BLOCK ADDRESS OUT OF RANGE, if the user tries to read or write an
LBA outside the LBA range.


Kind regards,
Niklas


Niklas Cassel (13):
  hw/ide: report the SMART state in IDENTIFY DEVICE
  hw/ide/ahci: stop processing commands after a fatal error
  hw/ide/ahci: clear a stale error status when an NCQ command is queued
  hw/ide/ahci: complete unsupported NCQ commands
  hw/ide: add General Purpose Logging (GPL) feature set support
  hw/ide: add the IDENTIFY DEVICE data log
  hw/ide/ahci: add RECEIVE FPDMA QUEUED support
  hw/ide: add Sense Data Reporting feature set support
  hw/ide: implement the NCQ Command Error log (10h)
  tests/qtest/libqos: skip some checks for commands expected to fail
  hw/ide: report out-of-range accesses as ILLEGAL REQUEST
  hw/ide/ahci: check the LBA range of NCQ commands
  hw/ide: report ACS-6 compliance behind AHCI

 hw/ide/ahci-internal.h    |   8 +
 hw/ide/ahci.c             | 219 ++++++++++--
 hw/ide/core.c             | 689 ++++++++++++++++++++++++++++++++++---
 hw/ide/ide-internal.h     |  44 ++-
 hw/ide/trace-events       |   2 +
 include/hw/ide/ide-dev.h  |  22 ++
 tests/qtest/ahci-test.c   | 708 ++++++++++++++++++++++++++++++++++++++
 tests/qtest/ide-test.c    |   5 +
 tests/qtest/libqos/ahci.c |  40 ++-
 tests/qtest/libqos/ahci.h |  18 +-
 10 files changed, 1682 insertions(+), 73 deletions(-)


base-commit: 29760efaf96bbe5928f8111881eddbf5ac06439e
-- 
2.56.1