diff options
| author | Lukas Straub <lukasstraub2@web.de> | 2023-04-20 11:48:06 +0200 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2023-05-08 15:25:26 +0200 |
| commit | 3e81763e4c2e9f1b4bc331605a6450b6845d8970 (patch) | |
| tree | 7f8ec37e1f711068364f3bddf43ce33bae6bdd77 /scripts/qapi/expr.py | |
| parent | b5cf1cd3e81eebb6343404fe8029d61dfb817d5a (diff) | |
| download | focaccia-qemu-3e81763e4c2e9f1b4bc331605a6450b6845d8970.tar.gz focaccia-qemu-3e81763e4c2e9f1b4bc331605a6450b6845d8970.zip | |
ram.c: Do not call save_page_header() from compress threads
save_page_header() accesses several global variables, so calling it from multiple threads is pretty ugly. Instead, call save_page_header() before writing out the compressed data from the compress buffer to the migration stream. This also makes the core compress code more independend from ram.c. 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