[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] virtio-blk: fail unaligned requests
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] virtio-blk: fail unaligned requests |
Date: |
Thu, 7 Apr 2011 09:46:09 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Apr 06, 2011 at 08:28:34PM +0200, Christoph Hellwig wrote:
> Like all block drivers virtio-blk should not allow small than block size
> granularity access. But given that the protocol specifies a
> byte unit length field we currently accept such requests, which cause
> qemu to abort() in lower layers. Add checks to the main read and
> write handlers to catch them early.
>
> Reported-by: Conor Murphy <address@hidden>
> Tested-by: Conor Murphy <address@hidden>
> Signed-off-by: Christoph Hellwig <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>