summary refs log tree commit diff stats
path: root/scripts/qapi/expr.py
diff options
context:
space:
mode:
authorLukas Straub <lukasstraub2@web.de>2023-04-20 11:48:03 +0200
committerJuan Quintela <quintela@redhat.com>2023-05-08 15:25:26 +0200
commitb5cf1cd3e81eebb6343404fe8029d61dfb817d5a (patch)
treeabdd15d10d4f1df410cfa54bb9f5b4406ed354dd /scripts/qapi/expr.py
parent10c2f7b747bebfbf67b2219330269dcd5721f3d9 (diff)
downloadfocaccia-qemu-b5cf1cd3e81eebb6343404fe8029d61dfb817d5a.tar.gz
focaccia-qemu-b5cf1cd3e81eebb6343404fe8029d61dfb817d5a.zip
ram.c: Reset result after sending queued data
And take the param->mutex lock for the whole section to ensure
thread-safety.
Now, it is explicitly clear if there is no queued data to send.
Before, this was handled by param->file stream being empty and thus
qemu_put_qemu_file() not sending anything.

This will be used in the next commits to move save_page_header()
out of compress code.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'scripts/qapi/expr.py')
0 files changed, 0 insertions, 0 deletions