Skip to contentSkip to conversation

Fix flaw of qemu_put_compression_data

PATCH RESEND Superseded Liang Li 1 participant 1 message Jan 15, 2016

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Liang Li

author
#0 lore raw

v2 cover Fix flaw of qemu_put_compression_data

The implementation of qemu_put_compression_data only consider the case QEMUFile is writable, it can't work with a writable QEMUFile and does not provide any measure to prevent users from using it with a writable QEMUFile. For safety, it should be improved to avoid some issues.

ram_save_compressed_page can be refined based on the change of qemu_put_compression_data, very small improvement, but code looks better.

Liang Li (2):
qemu-file: Fix qemu_put_compression_data flaw
migration: refine ram_save_compressed_page

 migration/qemu-file.c | 23 +++++++++++++++++++++--
 migration/ram.c       | 20 ++++++++------------
 2 files changed, 29 insertions(+), 14 deletions(-)
Signature · 1 line
1.9.1