Re: [Qemu-devel] [PATCH] virtio-blk: fail unaligned requests

2011-04-07 Thread Kevin Wolf
Am 06.04.2011 20:28, schrieb Christoph Hellwig: > 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

Re: [Qemu-devel] [PATCH] virtio-blk: fail unaligned requests

2011-04-07 Thread Stefan Hajnoczi
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

[Qemu-devel] [PATCH] virtio-blk: fail unaligned requests

2011-04-06 Thread Christoph Hellwig
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