On 6/22/26 12:12, Avihai Horon wrote:
Now that VFIO has implemented new switchover-ack, enable it for new
machines and keep legacy behavior for old machines.

Signed-off-by: Avihai Horon <[email protected]>
---
  hw/core/machine.c   | 1 +
  migration/options.c | 3 +--
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/core/machine.c b/hw/core/machine.c
index 9a10e45aab..a4af779357 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -48,6 +48,7 @@ GlobalProperty hw_compat_11_0[] = {
      { TYPE_ARM_SMMUV3, "ril", "on" },
      { TYPE_ARM_SMMUV3, "ssidsize", "0" },
      { TYPE_ARM_SMMUV3, "oas", "44" },
+    { "migration", "switchover-ack-legacy", "on" },
  };
  const size_t hw_compat_11_0_len = G_N_ELEMENTS(hw_compat_11_0);
diff --git a/migration/options.c b/migration/options.c
index 4c9b25372e..dfce19405d 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -110,9 +110,8 @@ const Property migration_properties[] = {
                       preempt_pre_7_2, false),
      DEFINE_PROP_BOOL("multifd-clean-tls-termination", MigrationState,
                       multifd_clean_tls_termination, true),
-    /* Use legacy until VFIO implements new switchover-ack */
      DEFINE_PROP_BOOL("switchover-ack-legacy", MigrationState,
-                     switchover_ack_legacy, true),
+                     switchover_ack_legacy, false),
/* Migration parameters */
      DEFINE_PROP_UINT8("x-throttle-trigger-threshold", MigrationState,

Reviewed-by: Cédric Le Goater <[email protected]>

Thanks,

C.


Reply via email to