aboutsummaryrefslogtreecommitdiff
path: root/qapi/string-input-visitor.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2022-10-11 17:55:55 -0400
committerJuan Quintela <quintela@redhat.com>2022-12-15 10:30:37 +0100
commitf166876423a4c8ba706e31075e21ae4ff92b4332 (patch)
treed184046cc374fc0e7525bdbc0300f3bcb340dfa9 /qapi/string-input-visitor.c
parentebd88a49736f4e3af0aa4004ceb0980698659ebe (diff)
downloadqemu-f166876423a4c8ba706e31075e21ae4ff92b4332.zip
qemu-f166876423a4c8ba706e31075e21ae4ff92b4332.tar.gz
qemu-f166876423a4c8ba706e31075e21ae4ff92b4332.tar.bz2
migration: Make PageSearchStatus part of RAMState
We used to allocate PSS structure on the stack for precopy when sending pages. Make it static, so as to describe per-channel ram migration status. Here we declared RAM_CHANNEL_MAX instances, preparing for postcopy to use it, even though this patch has not yet to start using the 2nd instance. This should not have any functional change per se, but it already starts to export PSS information via the RAMState, so that e.g. one PSS channel can start to reference the other PSS channel. Always protect PSS access using the same RAMState.bitmap_mutex. We already do so, so no code change needed, just some comment update. Maybe we should consider renaming bitmap_mutex some day as it's going to be a more commonly and big mutex we use for ram states, but just leave it for later. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'qapi/string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions