summary refs log tree commit diff stats
path: root/hw/misc/imx6_src.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2022-10-11 17:55:51 -0400
committerJuan Quintela <quintela@redhat.com>2022-12-15 10:30:37 +0100
commit23b7576d7879cdc93e3328e1a9228e8843780012 (patch)
treeef2bd156267ac39a812f728e54d7a17fcd4337bf /hw/misc/imx6_src.c
parentf3321554ef7e3adc3be6f697185d3bd50d60e30e (diff)
downloadfocaccia-qemu-23b7576d7879cdc93e3328e1a9228e8843780012.tar.gz
focaccia-qemu-23b7576d7879cdc93e3328e1a9228e8843780012.zip
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 'hw/misc/imx6_src.c')
0 files changed, 0 insertions, 0 deletions