Skip to content

scsi: handle reservation changes across migration

Stefan Hajnoczi qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scsi: change buf_size to unsigned int in scsi_SG_IO()hw/scsi/scsi-generic.c include/hw/scsi/scsi.h+3 -20 replies
2/2scsi: handle reservation changes across migrationhw/scsi/scsi-generic.c+149 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] scsi: handle reservation changes across migration

The SCSI Persistent Reservation code can fail if another node has interfered with the reservation (e.g. by sending a PERSISTENT RESERVE OUT command with a PREEMPT or CLEAR service action). This is rare but can happen if the application or clustering framework performs recovery and wants to take away the guest's reservation.

This patch series adds an extra step when loading device state that synchronizes the transferred vmstate against the actual reservation state of the disk before moving the reservation. This way we can gracefully handle changes to reservations that were performed externally.

Stefan Hajnoczi (2):
scsi: change buf_size to unsigned int in scsi_SG_IO()
scsi: handle reservation changes across migration

 include/hw/scsi/scsi.h |   3 +-
 hw/scsi/scsi-generic.c | 175 +++++++++++++++++++++++++++++++++++------
 2 files changed, 152 insertions(+), 26 deletions(-)
Signature · 1 line
2.53.0