diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-12-26 00:26:38 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-12-27 15:47:24 +0100 |
commit | c090e0700e4403d084423f56990b85749c62a829 (patch) | |
tree | 1c42ba4f25b0b4c7872a94c5f00055547d1c1a7e /target-ppc/cpu-qom.h | |
parent | bae85ae6bf66bd2c40cdf27ea61fc507d624bf61 (diff) | |
download | qemu-c090e0700e4403d084423f56990b85749c62a829.tar.gz |
block/dmg: improve zeroes handling
Disk images may contain large all-zeroes gaps (1.66k sectors or 812 MiB
is seen in the real world). These blocks (type 2) do not need to be
extracted into a temporary buffer, there is no need to allocate memory
for these blocks nor to check its length.
(For the test image, the maximum uncompressed size is 1054371 bytes,
probably for a bzip2-compressed block.)
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'target-ppc/cpu-qom.h')
0 files changed, 0 insertions, 0 deletions