]> Git Repo - qemu.git/commit
virtio-blk: Treat read/write beyond end as invalid
authorMarkus Armbruster <[email protected]>
Wed, 9 Jul 2014 17:07:31 +0000 (19:07 +0200)
committerKevin Wolf <[email protected]>
Mon, 14 Jul 2014 10:03:21 +0000 (12:03 +0200)
commit3c2daac0b98952a858277878cb11294256b39e43
treea76b5e0962f0f1650b7007449b7290777de31597
parent42e38c1fd0199155d32f3464aedce282d3d7f6a1
virtio-blk: Treat read/write beyond end as invalid

The block layer fails such reads and writes just fine.  However, they
then get treated like valid operations that fail: the error action
gets executed.  Unwanted; reporting the error to the guest is the only
sensible action.

Reject them before passing them to the block layer.  This bypasses the
error action and I/O accounting.

Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Fam Zheng <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
hw/block/virtio-blk.c
This page took 0.025448 seconds and 4 git commands to generate.