All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Xu <peterx@redhat.com>
To: Avihai Horon <avihaih@nvidia.com>
Cc: qemu-devel@nongnu.org, "Alex Williamson" <alex@shazbot.org>,
	"Cédric Le Goater" <clg@redhat.com>,
	"Fabiano Rosas" <farosas@suse.de>,
	"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>,
	"Philippe Mathieu-Daudé" <philmd@mailo.com>,
	"Zhao Liu" <zhao1.liu@intel.com>,
	"Halil Pasic" <pasic@linux.ibm.com>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>,
	"Jason Herne" <jjherne@linux.ibm.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Ilya Leoshkevich" <iii@linux.ibm.com>,
	"David Hildenbrand" <david@kernel.org>,
	"Eric Farman" <farman@linux.ibm.com>,
	"Matthew Rosato" <mjrosato@linux.ibm.com>,
	"Cornelia Huck" <cohuck@redhat.com>,
	"Eric Blake" <eblake@redhat.com>,
	"Vladimir Sementsov-Ogievskiy" <vsementsov@yandex-team.ru>,
	"John Snow" <jsnow@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>,
	"Maor Gottlieb" <maorg@nvidia.com>
Subject: Re: [PATCH v3 07/14] migration: Make switchover-ack re-usable
Date: Mon, 15 Jun 2026 09:34:58 -0400	[thread overview]
Message-ID: <ai__gjsVcZs_ecLc@x1.local> (raw)
In-Reply-To: <e4d00894-990b-44b3-b89c-7cd1b0398a0a@nvidia.com>

On Sun, Jun 14, 2026 at 12:50:14PM +0300, Avihai Horon wrote:
> 
> On 6/12/2026 7:16 PM, Peter Xu wrote:
> > External email: Use caution opening links or attachments
> > 
> > 
> > On Tue, Jun 09, 2026 at 10:58:05AM +0300, Avihai Horon wrote:
> > > diff --git a/hw/core/machine.c b/hw/core/machine.c
> > > index 4d8b15d99e..8219f13779 100644
> > > --- a/hw/core/machine.c
> > > +++ b/hw/core/machine.c
> > > @@ -43,6 +43,7 @@ GlobalProperty hw_compat_11_0[] = {
> > >       { "chardev-vc", "encoding", "cp437" },
> > >       { "tpm-crb", "cap-chunk", "off" },
> > >       { "tpm-crb", "x-allow-chunk-migration", "off" },
> > > +    { "migration", "switchover-ack-legacy", "on" },
> > >   };
> > This line needs to be moved to the last patch, or people will get very
> > confused on last patch flipping default without caring about old behavior..
> 
> This patch Implements the compatibility flows for legacy switchover-ack
> which use this property, so moving this line to last patch sounds even more
> confusing IMHO.

My comment only applies to this one line to change hw_compat_11_0[], not
the property itself.  It won't affect this patch.  It's common pattern to
do this in one patch to "update default value, but let's keep the old
machines unaffected".

Btw, since this value still has a default value ON in this patch, moving
this line to the last patch won't change anything except making last patch
clearer.

Thanks,

> 
> The last patch should not be viewed standalone, it's tightly coupled with
> this one. Plus, it doesn't make sense to have the switchover-ack-legacy
> property if it's always off.
> So I personally don't find it confusing, the last patch simply enables the
> feature once everything is in place.
> 
> If that helps, I can extend the last patch's commit message to something
> like:
> 
>   Now that VFIO has implemented new switchover-ack, enable it for new
>   machines. Note that legacy switchover-ack is still used for
>   compatibility with older machines via a compatibility entry for
>   switchover-ack-legacy property.
> 
> > 
> > After move, feel free to take:
> > 
> > Reviewed-by: Peter Xu <peterx@redhat.com>
> > 
> > PS: If Cédric feels comfortable updating that while queuing it'll be fine
> > too.
> 
> Thanks.
> 

-- 
Peter Xu



  reply	other threads:[~2026-06-15 13:35 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-09  7:57 [PATCH v3 00/14] Make switchover-ack re-usable and add VFIO precopy REINIT feature Avihai Horon
2026-06-09  7:57 ` [PATCH v3 01/14] migration: Propagate errors in migration_completion_precopy() Avihai Horon
2026-06-09 12:11   ` Philippe Mathieu-Daudé
2026-06-12 16:03     ` Peter Xu
2026-06-14  9:34       ` Avihai Horon
2026-06-09  7:58 ` [PATCH v3 02/14] migration/ram: Use migration_bitmap_sync_precopy() for postcopy discard Avihai Horon
2026-06-12 15:59   ` Peter Xu
2026-06-09  7:58 ` [PATCH v3 03/14] migration: Run final save_query_pending at switchover Avihai Horon
2026-06-12 16:03   ` Peter Xu
2026-06-09  7:58 ` [PATCH v3 04/14] migration: Log the approver in qemu_loadvm_approve_switchover() Avihai Horon
2026-06-09  7:58 ` [PATCH v3 05/14] migration: Replace switchover_ack_needed SaveVMHandler Avihai Horon
2026-06-09  7:58 ` [PATCH v3 06/14] migration: Rename switchover-ack code to legacy Avihai Horon
2026-06-09  7:58 ` [PATCH v3 07/14] migration: Make switchover-ack re-usable Avihai Horon
2026-06-12 16:16   ` Peter Xu
2026-06-14  9:50     ` Avihai Horon
2026-06-15 13:34       ` Peter Xu [this message]
2026-06-15 14:35         ` Avihai Horon
2026-06-09  7:58 ` [PATCH v3 08/14] migration: Fail migration if switchover-ack is requested after switchover decision Avihai Horon
2026-06-12 16:17   ` Peter Xu
2026-06-09  7:58 ` [PATCH v3 09/14] vfio/migration: Extract VFIO_MIG_FLAG_DEV_INIT_DATA_SENT sending to helper Avihai Horon
2026-06-09  7:58 ` [PATCH v3 10/14] vfio/migration: Add Error ** parameter to vfio_migration_init() Avihai Horon
2026-06-09 12:09   ` Cédric Le Goater
2026-06-09  7:58 ` [PATCH v3 11/14] vfio/migration: Add new switchover-ack mechanism Avihai Horon
2026-06-09  7:58 ` [PATCH v3 12/14] vfio/migration: Implement VFIO_PRECOPY_INFO_REINIT feature Avihai Horon
2026-06-09  7:58 ` [PATCH v3 13/14] vfio/migration: Check VFIO_PRECOPY_INFO_REINIT during switchover Avihai Horon
2026-06-12 16:22   ` Peter Xu
2026-06-09  7:58 ` [PATCH v3 14/14] migration: Enable new switchover-ack Avihai Horon

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=ai__gjsVcZs_ecLc@x1.local \
    --to=peterx@redhat.com \
    --cc=alex@shazbot.org \
    --cc=armbru@redhat.com \
    --cc=avihaih@nvidia.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=clg@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=david@kernel.org \
    --cc=eblake@redhat.com \
    --cc=farman@linux.ibm.com \
    --cc=farosas@suse.de \
    --cc=iii@linux.ibm.com \
    --cc=jjherne@linux.ibm.com \
    --cc=jsnow@redhat.com \
    --cc=maorg@nvidia.com \
    --cc=mjrosato@linux.ibm.com \
    --cc=pasic@linux.ibm.com \
    --cc=philmd@mailo.com \
    --cc=pierrick.bouvier@oss.qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=vsementsov@yandex-team.ru \
    --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.