]> git.proxmox.com Git - mirror_qemu.git/commit
block/mirror: move dirty bitmap to filter
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 31 Oct 2023 13:54:24 +0000 (14:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 31 Oct 2023 17:20:29 +0000 (18:20 +0100)
commit058cfca5645a9ed7cb2bdb77d15f2eacaf343694
treeb2c79cdb099353eef066889b763c1cdafbbca2dc
parentc45d0e1af0b9e8fa0b0abc30bd6a4ef8d37964b4
block/mirror: move dirty bitmap to filter

In preparation to allow switching to active mode without draining.
Initialization of the bitmap in mirror_dirty_init() still happens with
the original/backing BlockDriverState, which should be fine, because
the mirror top has the same length.

Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20231031135431.393137-4-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/mirror.c