34a8892d | 24-Oct-2024 |
Peter Xu <peterx@redhat.com> |
migration: Drop migration_is_idle()
Now with the current migration_is_running(), it will report exactly the opposite of what will be reported by migration_is_idle().
Drop migration_is_idle(), inste
migration: Drop migration_is_idle()
Now with the current migration_is_running(), it will report exactly the opposite of what will be reported by migration_is_idle().
Drop migration_is_idle(), instead use "!migration_is_running()" which should be identical on functionality.
In reality, most of the idle check is inverted, so it's even easier to write with "migrate_is_running()" check.
Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20241024213056.1395400-6-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
f018eb62 | 24-Oct-2024 |
Peter Xu <peterx@redhat.com> |
migration: Drop migration_is_setup_or_active()
This helper is mostly the same as migration_is_running(), except that one has COLO reported as true, the other has CANCELLING reported as true.
Per my
migration: Drop migration_is_setup_or_active()
This helper is mostly the same as migration_is_running(), except that one has COLO reported as true, the other has CANCELLING reported as true.
Per my past years experience on the state changes, none of them should matter.
To make it slightly safer, report both COLO || CANCELLING to be true in migration_is_running(), then drop the other one. We kept the 1st only because the name is simpler, and clear enough.
Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20241024213056.1395400-5-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
64dcd2c9 | 24-Oct-2024 |
Peter Xu <peterx@redhat.com> |
migration: Unexport ram_mig_init()
It's only used within migration/.
Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/2024
migration: Unexport ram_mig_init()
It's only used within migration/.
Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20241024213056.1395400-4-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
e4fa064d | 20-Mar-2024 |
Cédric Le Goater <clg@redhat.com> |
migration: Add Error** argument to .load_setup() handler
This will be useful to report errors at a higher level, mostly in VFIO today.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Review
migration: Add Error** argument to .load_setup() handler
This will be useful to report errors at a higher level, mostly in VFIO today.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/r/20240320064911.545001-9-clg@redhat.com [peterx: drop comment for ERRP_GUARD, per Markus] Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
c9539d9b | 11-Mar-2024 |
Steve Sistare <steven.sistare@oracle.com> |
migration: purge MigrationState from public interface
Move remaining MigrationState references from the public file misc.h to the private file migration.h.
Signed-off-by: Steve Sistare <steven.sist
migration: purge MigrationState from public interface
Move remaining MigrationState references from the public file misc.h to the private file migration.h.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lore.kernel.org/r/1710179338-294359-12-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
9bb630c6 | 11-Mar-2024 |
Steve Sistare <steven.sistare@oracle.com> |
migration: migration_is_device
Define and export migration_is_device to eliminate a dependency on MigrationState.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lore.kernel.
migration: migration_is_device
Define and export migration_is_device to eliminate a dependency on MigrationState.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lore.kernel.org/r/1710179338-294359-8-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
6e785639 | 11-Mar-2024 |
Steve Sistare <steven.sistare@oracle.com> |
migration: migration_thread_is_self
Define and export migration_thread_is_self to eliminate a dependency on MigrationState.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lo
migration: migration_thread_is_self
Define and export migration_thread_is_self to eliminate a dependency on MigrationState.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lore.kernel.org/r/1710179338-294359-7-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
714f3312 | 11-Mar-2024 |
Steve Sistare <steven.sistare@oracle.com> |
migration: export vcpu_dirty_limit_period
Define and export vcpu_dirty_limit_period to eliminate a dependency on MigrationState.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https
migration: export vcpu_dirty_limit_period
Define and export vcpu_dirty_limit_period to eliminate a dependency on MigrationState.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lore.kernel.org/r/1710179338-294359-6-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
f3bff6c4 | 11-Mar-2024 |
Steve Sistare <steven.sistare@oracle.com> |
migration: export fewer options
A small number of migration options are accessed by migration clients, but to see them clients must include all of options.h, which is mostly for migration core code.
migration: export fewer options
A small number of migration options are accessed by migration clients, but to see them clients must include all of options.h, which is mostly for migration core code. migrate_mode() in particular will be needed by multiple clients.
Refactor the option declarations so clients can see the necessary few via misc.h, which already exports a portion of the client API.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lore.kernel.org/r/1710179319-294320-1-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
ee8bb867 | 04-Mar-2024 |
Cédric Le Goater <clg@redhat.com> |
migration: Add documentation for SaveVMHandlers
The SaveVMHandlers structure is still in use for complex subsystems and devices. Document the handlers since we are going to modify a few later.
Revi
migration: Add documentation for SaveVMHandlers
The SaveVMHandlers structure is still in use for complex subsystems and devices. Document the handlers since we are going to modify a few later.
Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/r/20240304122844.1888308-9-clg@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|
9867d4dd | 22-Feb-2024 |
Steve Sistare <steven.sistare@oracle.com> |
migration: stop vm for cpr
When migration for cpr is initiated, stop the vm and set state RUN_STATE_FINISH_MIGRATE before ram is saved. This eliminates the possibility of ram and device state being
migration: stop vm for cpr
When migration for cpr is initiated, stop the vm and set state RUN_STATE_FINISH_MIGRATE before ram is saved. This eliminates the possibility of ram and device state being out of sync, and guarantees that a guest in the suspended state remains suspended, because qmp_cont rejects a cont command in the RUN_STATE_FINISH_MIGRATE state.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Reviewed-by: Peter Xu <peterx@redhat.com> Link: https://lore.kernel.org/r/1708622920-68779-11-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
show more ...
|