|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] qemu-img convert cache mode for source |
Date: | Mon, 03 Mar 2014 13:59:59 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Il 03/03/2014 12:20, Peter Lieven ha scritto:
This #ifdef should be in the raw-posix driver. Please try to keep the qemu interface backend agnostic and leave POSIX_FADV_DONTNEED and friends as an implementation detail of block drivers.I had the same idee, but as far as I see the callback to the completes request is handled in block.c. raw-posix uses the aio interface and not coroutines.
You can put it in the QEMU_AIO_READ case of aio_worker. linux-aio.c is only for O_DIRECT, so you do not need it there. BTW, perhaps you need to exclude the fadvise if O_DIRECT is in use? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |