summary refs log tree commit diff stats
path: root/hw/i2c/microbit_i2c.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2020-04-28 15:29:04 -0500
committerKevin Wolf <kwolf@redhat.com>2020-05-08 13:26:35 +0200
commitdbc636e791ad04b6bcdec982d2b9c45d7182e037 (patch)
tree0db058489ccead7a9f1c8b574157a4cc2c4728da /hw/i2c/microbit_i2c.c
parentbda4cdcbb997d34762e2af27e1f475357a9b4453 (diff)
downloadfocaccia-qemu-dbc636e791ad04b6bcdec982d2b9c45d7182e037.tar.gz
focaccia-qemu-dbc636e791ad04b6bcdec982d2b9c45d7182e037.zip
vhdx: Rework truncation logic
The vhdx driver uses truncation for image growth, with a special case
for blocks that already read as zero but which are only being
partially written.  But with a bit of rearranging, it's just as easy
to defer the decision on whether truncation resulted in zeroes to the
actual allocation attempt, reducing the number of places that still
use bdrv_has_zero_init_truncate.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200428202905.770727-9-eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/i2c/microbit_i2c.c')
0 files changed, 0 insertions, 0 deletions