summaryrefslogtreecommitdiffstats
path: root/hw/block
diff options
context:
space:
mode:
authorEric Blake2016-05-06 18:26:39 +0200
committerKevin Wolf2016-05-12 15:22:09 +0200
commit12c125cba9c548929ccf4da2515e5b795c94afd9 (patch)
treea16035e904e71cac0de092b939fd60c10e6d2a1c /hw/block
parentpflash: Switch to byte-based block access (diff)
downloadqemu-12c125cba9c548929ccf4da2515e5b795c94afd9.tar.gz
qemu-12c125cba9c548929ccf4da2515e5b795c94afd9.tar.xz
qemu-12c125cba9c548929ccf4da2515e5b795c94afd9.zip
sd: Switch to byte-based block access
Sector-based blk_write() should die; switch to byte-based blk_pwrite() instead. Likewise for blk_read(). Greatly simplifies the code, now that we let the block layer take care of alignment and read-modify-write on our behalf :) In fact, we no longer need to include 'buf' in the migration stream (although we do have to ensure that the stream remains compatible). Signed-off-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block')
0 files changed, 0 insertions, 0 deletions