Re: [Qemu-devel] [RFC PATCH 05/19] raw: Probe required direct I/O alignment

2013-12-09 Thread Paolo Bonzini
Il 09/12/2013 13:58, Kevin Wolf ha scritto: > How is BlockLimits supposed with respect to inheritance of values > through the BDS tree? I think right now the accessor wrappers for the various BlockLimits field sort that out. Of course this could be slow if the accessors end up in the fast path (b

Re: [Qemu-devel] [RFC PATCH 05/19] raw: Probe required direct I/O alignment

2013-12-09 Thread Kevin Wolf
Am 06.12.2013 um 18:53 hat Paolo Bonzini geschrieben: > Il 06/12/2013 18:22, Kevin Wolf ha scritto: > > @@ -1227,6 +1288,7 @@ static BlockDriver bdrv_file = { > > .bdrv_aio_writev = raw_aio_writev, > > .bdrv_aio_flush = raw_aio_flush, > > .bdrv_aio_discard = raw_aio_discard, > > +

Re: [Qemu-devel] [RFC PATCH 05/19] raw: Probe required direct I/O alignment

2013-12-06 Thread Paolo Bonzini
Il 06/12/2013 18:22, Kevin Wolf ha scritto: > @@ -1227,6 +1288,7 @@ static BlockDriver bdrv_file = { > .bdrv_aio_writev = raw_aio_writev, > .bdrv_aio_flush = raw_aio_flush, > .bdrv_aio_discard = raw_aio_discard, > +.bdrv_opt_mem_align = raw_opt_mem_align, > > .bdrv_truncat

[Qemu-devel] [RFC PATCH 05/19] raw: Probe required direct I/O alignment

2013-12-06 Thread Kevin Wolf
From: Paolo Bonzini Add a bs->request_alignment field that contains the required offset/length alignment for I/O requests and fill it in the raw block drivers. Use ioctls if possible, else see what alignment it takes for O_DIRECT to succeed. While at it, also expose the memory alignment requirem