Re: [Qemu-devel] [PATCH for-2.1] dma-helpers: Fix too long qiov

2014-09-03 Thread Paolo Bonzini
Il 09/07/2014 19:23, Kevin Wolf ha scritto: > If the size of the scatter/gather list isn't a multiple of 512, the > number of sectors for the block layer request is rounded down, resulting > in a qiov that doesn't match the request length. Truncate the qiov to the > new length of the request. > >

Re: [Qemu-devel] [PATCH for-2.1] dma-helpers: Fix too long qiov

2014-07-09 Thread Eric Blake
On 07/09/2014 11:23 AM, Kevin Wolf wrote: > If the size of the scatter/gather list isn't a multiple of 512, the > number of sectors for the block layer request is rounded down, resulting > in a qiov that doesn't match the request length. Truncate the qiov to the > new length of the request. > > Th

[Qemu-devel] [PATCH for-2.1] dma-helpers: Fix too long qiov

2014-07-09 Thread Kevin Wolf
If the size of the scatter/gather list isn't a multiple of 512, the number of sectors for the block layer request is rounded down, resulting in a qiov that doesn't match the request length. Truncate the qiov to the new length of the request. This fixes the IDE qtest case /x86_64/ide/bmdma/short_pr