qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/11] Support persistent reservation operations
@ 2024-05-17  9:52 Changqi Lu
  2024-05-17  9:52 ` [PATCH v3 01/11] block: add persistent reservation in/out api Changqi Lu
                   ` (11 more replies)
  0 siblings, 12 replies; 18+ messages in thread
From: Changqi Lu @ 2024-05-17  9:52 UTC (permalink / raw)
  To: qemu-block, qemu-devel
  Cc: kwolf, hreitz, stefanha, fam, ronniesahlberg, pbonzini, pl,
	kbusch, its, foss, philmd, pizhenwei, Changqi Lu

Hi,

Please ignore the v2 series. Please review the v3 series instead.
Thanks!

v2->v3:
In v2 Persist Through Power Loss(PTPL) is enable default.
In v3 PTPL is supported, which is passed as a parameter.

v1->v2:
- Add sg_persist --report-capabilities for SCSI protocol and enable
  oncs and rescap for NVMe protocol.
- Add persistent reservation capabilities constants and helper functions for
  SCSI and NVMe protocol.
- Add comments for necessary APIs.

v1:
- Add seven APIs about persistent reservation command for block layer.
  These APIs including reading keys, reading reservations, registering,
  reserving, releasing, clearing and preempting.
- Add the necessary pr-related operation APIs for both the
  SCSI protocol and NVMe protocol at the device layer.
- Add scsi driver at the driver layer to verify the functions.
Changqi Lu (11):
  block: add persistent reservation in/out api
  block/raw: add persistent reservation in/out driver
  scsi/constant: add persistent reservation in/out protocol constants
  scsi/util: add helper functions for persistent reservation types
    conversion
  hw/scsi: add persistent reservation in/out api for scsi device
  block/nvme: add reservation command protocol constants
  hw/nvme: add helper functions for converting reservation types
  hw/nvme: enable ONCS reservations
  hw/nvme: enable namespace rescap function
  hw/nvme: add reservation protocal command
  block/iscsi: add persistent reservation in/out driver

 block/block-backend.c             | 397 ++++++++++++++++++++++++++
 block/io.c                        | 163 +++++++++++
 block/iscsi.c                     | 443 ++++++++++++++++++++++++++++++
 block/raw-format.c                |  56 ++++
 hw/nvme/ctrl.c                    | 324 +++++++++++++++++++++-
 hw/nvme/ns.c                      |   8 +
 hw/nvme/nvme.h                    |  44 +++
 hw/scsi/scsi-disk.c               | 352 ++++++++++++++++++++++++
 include/block/block-common.h      |  40 +++
 include/block/block-io.h          |  20 ++
 include/block/block_int-common.h  |  84 ++++++
 include/block/nvme.h              |  99 +++++++
 include/scsi/constants.h          |  52 ++++
 include/scsi/utils.h              |   8 +
 include/sysemu/block-backend-io.h |  24 ++
 scsi/utils.c                      |  81 ++++++
 16 files changed, 2193 insertions(+), 2 deletions(-)

-- 
2.20.1



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

end of thread, other threads:[~2024-05-24  7:25 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-17  9:52 [PATCH v3 00/11] Support persistent reservation operations Changqi Lu
2024-05-17  9:52 ` [PATCH v3 01/11] block: add persistent reservation in/out api Changqi Lu
2024-05-17  9:52 ` [PATCH v3 02/11] block/raw: add persistent reservation in/out driver Changqi Lu
2024-05-17  9:52 ` [PATCH v3 03/11] scsi/constant: add persistent reservation in/out protocol constants Changqi Lu
2024-05-17  9:52 ` [PATCH v3 04/11] scsi/util: add helper functions for persistent reservation types conversion Changqi Lu
2024-05-17  9:52 ` [PATCH v3 05/11] hw/scsi: add persistent reservation in/out api for scsi device Changqi Lu
2024-05-17  9:52 ` [PATCH v3 06/11] block/nvme: add reservation command protocol constants Changqi Lu
2024-05-24  7:14   ` Klaus Jensen
2024-05-17  9:52 ` [PATCH v3 07/11] hw/nvme: add helper functions for converting reservation types Changqi Lu
2024-05-17  9:52 ` [PATCH v3 08/11] hw/nvme: enable ONCS reservations Changqi Lu
2024-05-24  7:10   ` Klaus Jensen
2024-05-17  9:52 ` [PATCH v3 09/11] hw/nvme: enable namespace rescap function Changqi Lu
2024-05-24  7:09   ` Klaus Jensen
2024-05-24  7:20   ` Klaus Jensen
2024-05-17  9:52 ` [PATCH v3 10/11] hw/nvme: add reservation protocal command Changqi Lu
2024-05-24  7:24   ` Klaus Jensen
2024-05-17  9:52 ` [PATCH v3 11/11] block/iscsi: add persistent reservation in/out driver Changqi Lu
2024-05-24  3:34 ` [PATCH v3 00/11] Support persistent reservation operations 卢长奇

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).