aboutsummaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2023-10-04 18:02:36 -0400
committerJuan Quintela <quintela@redhat.com>2023-10-11 11:17:05 +0200
commit1015ff5476ceed0ff76156c1b60e76f9d21db497 (patch)
tree52cfea94f6d2c7b34174b2475f588de4b1d01e15 /host
parentf4b897f4854c579cedc4d5ebb6db16c03a1eaeb1 (diff)
downloadqemu-1015ff5476ceed0ff76156c1b60e76f9d21db497.zip
qemu-1015ff5476ceed0ff76156c1b60e76f9d21db497.tar.gz
qemu-1015ff5476ceed0ff76156c1b60e76f9d21db497.tar.bz2
migration: Remember num of ramblocks to sync during recovery
Instead of only relying on the count of rp_sem, make the counter be part of RAMState so it can be used in both threads to synchronize on the process. rp_sem will be further reused in follow up patches, as a way to kick the main thread, e.g., on recovery failures. Reviewed-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231004220240.167175-7-peterx@redhat.com>
Diffstat (limited to 'host')
0 files changed, 0 insertions, 0 deletions