mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:51 +00:00
migration: Remove zero-blocks capability
It was declared deprecated since 9.2. Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Link: https://lore.kernel.org/qemu-devel/20260115225503.3083355-2-peterx@redhat.com Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
@@ -532,9 +532,3 @@ usage of providing a file descriptor to a plain file has been
|
||||
deprecated in favor of explicitly using the ``file:`` URI with the
|
||||
file descriptor being passed as an ``fdset``. Refer to the ``add-fd``
|
||||
command documentation for details on the ``fdset`` usage.
|
||||
|
||||
``zero-blocks`` capability (since 9.2)
|
||||
''''''''''''''''''''''''''''''''''''''
|
||||
|
||||
The ``zero-blocks`` capability was part of the block migration which
|
||||
doesn't exist anymore since it was removed in QEMU v9.1.
|
||||
|
||||
@@ -723,6 +723,13 @@ Block migration has been removed. For a replacement, see "QMP
|
||||
invocation for live storage migration with ``blockdev-mirror`` + NBD"
|
||||
in docs/interop/live-block-operations.rst.
|
||||
|
||||
``migrate-set-capabilities`` ``zero-blocks`` option (removed in 11.0)
|
||||
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||
|
||||
The ``zero-blocks`` capability was accidentally left behind when
|
||||
block migration capability got removed in 9.1. Removed with no
|
||||
replacement.
|
||||
|
||||
``migrate-set-parameter`` ``compress-level`` option (removed in 9.1)
|
||||
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||
|
||||
|
||||
@@ -188,7 +188,6 @@ const Property migration_properties[] = {
|
||||
DEFINE_PROP_MIG_CAP("x-xbzrle", MIGRATION_CAPABILITY_XBZRLE),
|
||||
DEFINE_PROP_MIG_CAP("x-rdma-pin-all", MIGRATION_CAPABILITY_RDMA_PIN_ALL),
|
||||
DEFINE_PROP_MIG_CAP("x-auto-converge", MIGRATION_CAPABILITY_AUTO_CONVERGE),
|
||||
DEFINE_PROP_MIG_CAP("x-zero-blocks", MIGRATION_CAPABILITY_ZERO_BLOCKS),
|
||||
DEFINE_PROP_MIG_CAP("x-events", MIGRATION_CAPABILITY_EVENTS),
|
||||
DEFINE_PROP_MIG_CAP("x-postcopy-ram", MIGRATION_CAPABILITY_POSTCOPY_RAM),
|
||||
DEFINE_PROP_MIG_CAP("x-postcopy-preempt",
|
||||
@@ -576,10 +575,6 @@ bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp)
|
||||
ERRP_GUARD();
|
||||
MigrationIncomingState *mis = migration_incoming_get_current();
|
||||
|
||||
if (new_caps[MIGRATION_CAPABILITY_ZERO_BLOCKS]) {
|
||||
warn_report("zero-blocks capability is deprecated");
|
||||
}
|
||||
|
||||
#ifndef CONFIG_REPLICATION
|
||||
if (new_caps[MIGRATION_CAPABILITY_X_COLO]) {
|
||||
error_setg(errp, "QEMU compiled without replication module"
|
||||
|
||||
@@ -440,13 +440,6 @@
|
||||
# footprint is mlock()'d on demand or all at once. Refer to
|
||||
# docs/rdma.txt for usage. Disabled by default. (since 2.0)
|
||||
#
|
||||
# @zero-blocks: During storage migration encode blocks of zeroes
|
||||
# efficiently. This essentially saves 1MB of zeroes per block on
|
||||
# the wire. Enabling requires source and target VM to support
|
||||
# this feature. To enable it is sufficient to enable the
|
||||
# capability on the source VM. The feature is disabled by
|
||||
# default. (since 1.6)
|
||||
#
|
||||
# @events: generate events for each migration state change (since 2.4)
|
||||
#
|
||||
# @auto-converge: If enabled, QEMU will automatically throttle down
|
||||
@@ -531,14 +524,10 @@
|
||||
#
|
||||
# @unstable: Members @x-colo and @x-ignore-shared are experimental.
|
||||
#
|
||||
# @deprecated: Member @zero-blocks is deprecated as being part of
|
||||
# block migration which was already removed.
|
||||
#
|
||||
# Since: 1.2
|
||||
##
|
||||
{ 'enum': 'MigrationCapability',
|
||||
'data': ['xbzrle', 'rdma-pin-all', 'auto-converge',
|
||||
{ 'name': 'zero-blocks', 'features': [ 'deprecated' ] },
|
||||
'events', 'postcopy-ram',
|
||||
{ 'name': 'x-colo', 'features': [ 'unstable' ] },
|
||||
'release-ram',
|
||||
@@ -595,7 +584,6 @@
|
||||
# {"state": false, "capability": "xbzrle"},
|
||||
# {"state": false, "capability": "rdma-pin-all"},
|
||||
# {"state": false, "capability": "auto-converge"},
|
||||
# {"state": false, "capability": "zero-blocks"},
|
||||
# {"state": true, "capability": "events"},
|
||||
# {"state": false, "capability": "postcopy-ram"},
|
||||
# {"state": false, "capability": "x-colo"}
|
||||
|
||||
Reference in New Issue
Block a user