From: Peter Xu <peterx@redhat.com>
To: Fabiano Rosas <farosas@suse.de>
Cc: qemu-devel@nongnu.org, Lukas Straub <lukasstraub2@web.de>,
Prasad Pandit <ppandit@redhat.com>,
Juraj Marcin <jmarcin@redhat.com>,
David Woodhouse <dwmw2@infradead.org>,
Paul Durrant <paul@xen.org>
Subject: Re: [PATCH v2 23/24] migration: Simplify qemu_save_device_state()
Date: Mon, 2 Feb 2026 09:28:30 -0500 [thread overview]
Message-ID: <aYC0jshYDaYuUR1G@x1.local> (raw)
In-Reply-To: <87ms1xecm2.fsf@suse.de>
On Wed, Jan 28, 2026 at 04:55:17PM -0300, Fabiano Rosas wrote:
> Peter Xu <peterx@redhat.com> writes:
>
> > This function is used by both COLO and Xen. Simplify it with two changes:
> >
> > - Remove checks on qemu_savevm_se_iterable(): this is not needed as
> > vmstate_save() also checks for "save_state() || vmsd" instead. Here,
> > save_setup() (or say, iterable states) should be mutual exclusive to
> > "save_state() || vmsd" [*].
> >
> > - Remove migrate_error_propagate(): both of the users are not using live
> > migration framework, but raw vmstate operations. Error propagation is
> > not needed for query-migrate persistence.
> >
>
> s/not needed/only needed/
>
> I can fixup if no repost.
I'll fix both issues, including the one in the previous patch.
I'll wait for your review on the last patch to complete to see if I should
repost.
>
> > [*] One tricky user is VFIO, who provided _both_ save_state() and
> > save_setup(). However VFIO mustn't have been used in these paths or it
> > means both COLO and Xen have ignored VFIO data instead (that is,
> > qemu_savevm_se_iterable() will return true for VFIO). Hence, this change is
> > safe.
> >
> > Cc: David Woodhouse <dwmw2@infradead.org>
> > Cc: Paul Durrant <paul@xen.org>
> > Signed-off-by: Peter Xu <peterx@redhat.com>
>
> Reviewed-by: Fabiano Rosas <farosas@suse.de>
Thanks.
--
Peter Xu
next prev parent reply other threads:[~2026-02-02 14:30 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-27 18:52 [PATCH v2 00/24] migration: small cleanup series Peter Xu
2026-01-27 18:52 ` [PATCH v2 01/24] migration: Introduce qemu_savevm_send_* helpers Peter Xu
2026-01-27 18:52 ` [PATCH v2 02/24] migration: Use qemu_savevm_send_header() in qemu_save_device_state() Peter Xu
2026-01-27 18:52 ` [PATCH v2 03/24] migration: Remove one migration_in_colo_state() occurance Peter Xu
2026-01-27 18:52 ` [PATCH v2 04/24] migration/savevm: Remove SaveStateEntry.is_ram Peter Xu
2026-01-27 18:52 ` [PATCH v2 05/24] migration/colo: Unwrap qemu_savevm_live_state() Peter Xu
2026-01-27 18:52 ` [PATCH v2 06/24] migration: Remove call to send switchover start event in colo/savevm Peter Xu
2026-01-28 15:07 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 07/24] colo: Forbid VM resume during checkpointing Peter Xu
2026-01-27 18:52 ` [PATCH v2 08/24] migration/colo: Use the RAM iterable helper directly Peter Xu
2026-01-27 18:52 ` [PATCH v2 09/24] migration/colo: Document qemu_fflush(fb) Peter Xu
2026-01-28 15:08 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 10/24] migration: Drop iterable_only in qemu_savevm_state_complete_precopy Peter Xu
2026-01-27 18:52 ` [PATCH v2 11/24] migration: Drop qemu_file_set_error() when save non-iterable fails Peter Xu
2026-01-28 15:08 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 12/24] migration/colo: Send device states without copying buffer Peter Xu
2026-01-28 15:12 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 13/24] migration/postcopy: " Peter Xu
2026-01-28 15:18 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 14/24] migration: Introduce qemu_savevm_state_end() Peter Xu
2026-01-28 15:22 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 15/24] migration: Provide helper for save vm description Peter Xu
2026-01-28 15:22 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 16/24] migration: Split qemu_savevm_state_complete_precopy_non_iterable() Peter Xu
2026-01-28 15:22 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 17/24] migration: qemu_savevm_state_complete_precopy() take MigrationState* Peter Xu
2026-01-28 15:22 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 18/24] migration: Cleanup error propagates in qemu_savevm_state_setup() Peter Xu
2026-01-28 15:23 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 19/24] migration: Refactor qemu_savevm_state_setup() Peter Xu
2026-01-28 19:35 ` Fabiano Rosas
2026-01-28 20:36 ` Peter Xu
2026-01-28 21:36 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 20/24] migration: Introduce qemu_savevm_state_active() Peter Xu
2026-02-02 15:07 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 21/24] migration/bg-snapshot: Cleanup error paths Peter Xu
2026-01-28 19:45 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 22/24] migration: Make qemu_savevm_state_non_iterable() take errp Peter Xu
2026-01-28 19:52 ` Fabiano Rosas
2026-01-27 18:52 ` [PATCH v2 23/24] migration: Simplify qemu_save_device_state() Peter Xu
2026-01-28 19:55 ` Fabiano Rosas
2026-02-02 14:28 ` Peter Xu [this message]
2026-01-27 18:52 ` [PATCH v2 24/24] migration/colo/xen: Use generic helpers in qemu_save_device_state() Peter Xu
2026-02-02 15:14 ` Fabiano Rosas
2026-01-30 18:22 ` [PATCH v2 00/24] migration: small cleanup series Lukas Straub
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=aYC0jshYDaYuUR1G@x1.local \
--to=peterx@redhat.com \
--cc=dwmw2@infradead.org \
--cc=farosas@suse.de \
--cc=jmarcin@redhat.com \
--cc=lukasstraub2@web.de \
--cc=paul@xen.org \
--cc=ppandit@redhat.com \
--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.