qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [v2 0/2] Fix flaw of qemu_put_compression_data
@ 2015-12-07 10:14 Liang Li
  2015-12-07 10:14 ` [Qemu-devel] [v2 1/2] qemu-file: Fix qemu_put_compression_data flaw Liang Li
  2015-12-07 10:14 ` [Qemu-devel] [v2 2/2] migration: refine ram_save_compressed_page Liang Li
  0 siblings, 2 replies; 3+ messages in thread
From: Liang Li @ 2015-12-07 10:14 UTC (permalink / raw)
  To: qemu-devel; +Cc: amit.shah, stefanha, Liang Li, dgilbert, quintela

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(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-07 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07 10:14 [Qemu-devel] [v2 0/2] Fix flaw of qemu_put_compression_data Liang Li
2015-12-07 10:14 ` [Qemu-devel] [v2 1/2] qemu-file: Fix qemu_put_compression_data flaw Liang Li
2015-12-07 10:14 ` [Qemu-devel] [v2 2/2] migration: refine ram_save_compressed_page Liang Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).