multithread decompression: Avoid one copy
commitc1bc66263c2360d5211ecd18191b0be65b3b54e5
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 16 Dec 2015 11:47:38 +0000 (16 11:47 +0000)
committerAmit Shah <amit.shah@redhat.com>
Wed, 13 Jan 2016 10:33:01 +0000 (13 16:03 +0530)
tree8b828297ede3c8ee4d1e6823a571b73b04b4dfc8
parent063e760a5f52d9b82946956e7046828b524727af
multithread decompression: Avoid one copy

qemu_get_buffer does a copy, we can avoid the memcpy, and
we can then remove the extra buffer.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Liang Li <liang.z.li@intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Message-Id: <1450266458-3178-7-git-send-email-dgilbert@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
migration/ram.c