All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Fam Zheng <fam@euphon.net>, qemu-block@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH 0/2] scsi: handle reservation changes across migration
Date: Mon, 27 Apr 2026 15:14:45 -0400	[thread overview]
Message-ID: <20260427191445.GE218226@fedora> (raw)
In-Reply-To: <20260415232906.212349-1-stefanha@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]

On Wed, Apr 15, 2026 at 07:29:04PM -0400, Stefan Hajnoczi wrote:
> 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(-)

Ping.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      parent reply	other threads:[~2026-04-27 19:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Stefan Hajnoczi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260427191445.GE218226@fedora \
    --to=stefanha@redhat.com \
    --cc=fam@euphon.net \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.