Markus Armbruster 3c2daac0b9 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 <armbru@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-07-14 12:03:21 +02:00
..
2014-06-23 11:01:24 -04:00
2014-07-01 04:02:53 +02:00
2014-07-07 10:37:40 +00:00
2014-06-30 21:13:30 +02:00
2014-06-27 13:48:26 +02:00
2014-07-01 04:02:53 +02:00
2014-05-28 17:36:21 +02:00
2014-06-20 23:40:16 +02:00
2014-06-30 21:13:30 +02:00
2014-06-29 19:39:43 +03:00
2014-06-27 13:48:22 +02:00
2014-06-30 21:13:30 +02:00
2014-07-08 15:08:03 +02:00
2014-06-30 21:13:30 +02:00
2014-06-30 21:13:30 +02:00
2014-05-28 17:36:21 +02:00
2014-07-01 15:49:51 +02:00
2014-06-27 09:27:56 -04:00