search for: bdrv_qiov_is_align

Displaying 1 result from an estimated 1 matches for "bdrv_qiov_is_align".

Did you mean: bdrv_qiov_is_aligned
2013 May 24
0
Re: [Qemu-devel] use O_DIRECT to open disk images for IDE failed under xen-4.1.2 and qemu upstream
...uffer needs to be aligned on a sector > > > * boundary. Check if this is the case or tell the low-level > > > * driver that it needs to copy the buffer. > > > */ > > > if ((bs->open_flags & BDRV_O_NOCACHE)) { > > > if (!bdrv_qiov_is_aligned(bs, qiov)) { //if the address is > > aligned-512, will no meet the conditions > > > type |= QEMU_AIO_MISALIGNED; > > > #ifdef CONFIG_LINUX_AIO > > > } else if (s->use_aio) { > > > return laio_submit(bs, s->aio_ctx,...