From: Kevin Wolf <kwolf@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Yanan Wang" <wangyanan55@huawei.com>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Qing Wang" <qinwang@redhat.com>, "Fam Zheng" <fam@euphon.net>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Hannes Reinecke" <hare@suse.de>,
pkrempa@redhat.com, "Eduardo Habkost" <eduardo@habkost.net>,
"Alberto Faria" <afaria@redhat.com>
Subject: Re: [PATCH v3 0/5] scsi: persistent reservation live migration
Date: Tue, 10 Feb 2026 14:12:40 +0100 [thread overview]
Message-ID: <aYsuyI0RbAcEktsj@redhat.com> (raw)
In-Reply-To: <20260129212035.219676-1-stefanha@redhat.com>
Am 29.01.2026 um 22:20 hat Stefan Hajnoczi geschrieben:
> v3:
> - Use warn_report_err() instead of suppressing errors [Daniel Berrangé]
> - Wrap lines exceeding 80 characters
>
> v2:
> - Add user documentation [Paolo]
> - Send PREEMPT on the source if migration fails. This rollback operation
> ensures the source regains access to the LUN even if migration fails after
> the destination issues its own PREEMPT.
>
> Live migration does not work for SCSI Persistent Reservations acquired on
> scsi-block devices. This patch series migrates the reservation key and
> reservation type so that the destination QEMU can take over the persistent
> reservation with the PREEMPT service action upon live migration.
>
> The approach involves snooping PERSISTENT RESERVE OUT replies and tracking the
> scsi-block device's current reservation key and reservation type. In most cases
> this involves no additional SCSI commands. This approach isn't perfect: if
> another machine modifies the reservation on the physical LUN, then QEMU's state
> becomes stale. Persistent reservations are inherently cooperative, so this is
> acceptable as long as real applications don't run into problems.
>
> I am also working on a test suite called pr-tests that runs sg_persist(8)
> commands across multiple machines in order to exercise various scenarios:
> https://gitlab.com/stefanha/pr-tests
On top of this, should we do something to catch cases where migrate-pr
is off, but the user still tries to migrate while PRs are in use? Maybe
have a migration blocker as long as pr_state->key is set?
Kevin
prev parent reply other threads:[~2026-02-10 13:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 21:20 [PATCH v3 0/5] scsi: persistent reservation live migration Stefan Hajnoczi
2026-01-29 21:20 ` [PATCH v3 1/5] scsi: generalize scsi_SG_IO_FROM_DEV() to scsi_SG_IO() Stefan Hajnoczi
2026-01-29 21:20 ` [PATCH v3 2/5] scsi: add error reporting " Stefan Hajnoczi
2026-01-29 21:20 ` [PATCH v3 3/5] scsi: track SCSI reservation state for live migration Stefan Hajnoczi
2026-01-29 21:20 ` [PATCH v3 4/5] scsi: save/load SCSI reservation state Stefan Hajnoczi
2026-01-29 21:20 ` [PATCH v3 5/5] docs: add SCSI migrate-pr documentation Stefan Hajnoczi
2026-02-04 13:16 ` [PATCH v3 0/5] scsi: persistent reservation live migration Stefan Hajnoczi
2026-02-07 13:42 ` Paolo Bonzini
2026-02-07 13:42 ` Paolo Bonzini
2026-02-09 14:32 ` Stefan Hajnoczi
2026-02-10 13:12 ` Kevin Wolf [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=aYsuyI0RbAcEktsj@redhat.com \
--to=kwolf@redhat.com \
--cc=afaria@redhat.com \
--cc=eduardo@habkost.net \
--cc=fam@euphon.net \
--cc=hare@suse.de \
--cc=marcel.apfelbaum@gmail.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=pkrempa@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qinwang@redhat.com \
--cc=stefanha@redhat.com \
--cc=wangyanan55@huawei.com \
--cc=zhao1.liu@intel.com \
/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.