All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] scsi: handle reservation changes across migration
@ 2026-04-15 23:29 Stefan Hajnoczi
  2026-04-15 23:29 ` [PATCH 1/2] scsi: change buf_size to unsigned int in scsi_SG_IO() Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2026-04-15 23:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng, Paolo Bonzini, qemu-block, Stefan Hajnoczi

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(-)

-- 
2.53.0



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

end of thread, other threads:[~2026-04-27 19:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-15 23:29 [PATCH 0/2] scsi: handle reservation changes across migration Stefan Hajnoczi
2026-04-15 23:29 ` [PATCH 1/2] scsi: change buf_size to unsigned int in scsi_SG_IO() Stefan Hajnoczi
2026-04-15 23:29 ` [PATCH 2/2] scsi: handle reservation changes across migration Stefan Hajnoczi
2026-04-27 19:14 ` [PATCH 0/2] " Stefan Hajnoczi

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.