aboutsummaryrefslogtreecommitdiff
path: root/net/tap-linux.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2018-04-24 14:25:03 -0500
committerKevin Wolf <kwolf@redhat.com>2018-05-15 16:11:41 +0200
commitb3241e9274ca1aafb94ad8683305bb383e11c766 (patch)
treef51897bae35c7db74693f8c7ceb4466dafc62536 /net/tap-linux.c
parentde7056a3f95e85aa6bba30ad4b37a8dbc2b072ab (diff)
downloadqemu-b3241e9274ca1aafb94ad8683305bb383e11c766.zip
qemu-b3241e9274ca1aafb94ad8683305bb383e11c766.tar.gz
qemu-b3241e9274ca1aafb94ad8683305bb383e11c766.tar.bz2
null: Switch to byte-based read/write
We are gradually moving away from sector-based interfaces, towards byte-based. Make the change for the last few sector-based callbacks in the null-co and null-aio drivers. Note that since the null driver does nothing on writes, it trivially supports the BDRV_REQ_FUA flag (all writes have already landed to the same bit-bucket without needing an extra flush call). Also, since the null driver does just as well with byte-based requests, we can now avoid cycles wasted on read-modify-write by taking advantage of the block layer now defaulting the alignment to 1 instead of 512. Signed-off-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'net/tap-linux.c')
0 files changed, 0 insertions, 0 deletions