diff options
author | Peter Xu <peterx@redhat.com> | 2022-10-11 17:55:51 -0400 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2022-12-15 10:30:37 +0100 |
commit | 23b7576d7879cdc93e3328e1a9228e8843780012 (patch) | |
tree | ef2bd156267ac39a812f728e54d7a17fcd4337bf /qapi/string-input-visitor.c | |
parent | f3321554ef7e3adc3be6f697185d3bd50d60e30e (diff) | |
download | qemu-23b7576d7879cdc93e3328e1a9228e8843780012.zip qemu-23b7576d7879cdc93e3328e1a9228e8843780012.tar.gz qemu-23b7576d7879cdc93e3328e1a9228e8843780012.tar.bz2 |
migration: Use atomic ops properly for page accountings
To prepare for thread-safety on page accountings, at least below counters
need to be accessed only atomically, they are:
ram_counters.transferred
ram_counters.duplicate
ram_counters.normal
ram_counters.postcopy_bytes
There are a lot of other counters but they won't be accessed outside
migration thread, then they're still safe to be accessed without atomic
ops.
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