raw-posix: warn about BDRV_O_NATIVE_AIO if libaio is unavailable
commit1501ecc1d89231164b4aecddd0219ed4395b693a
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 23 Jul 2015 12:48:34 +0000 (23 13:48 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 16 Oct 2015 13:34:30 +0000 (16 15:34 +0200)
treef21c8796f36edbea238a1884d461e20729875897
parent15489c769b9a4b3bec5b5848af2960689d7b4bd8
raw-posix: warn about BDRV_O_NATIVE_AIO if libaio is unavailable

raw-posix.c silently ignores BDRV_O_NATIVE_AIO if libaio is unavailable.
It is confusing when aio=native performance is identical to aio=threads
because the binary was accidentally built without libaio.

Print a deprecation warning if -drive aio=native is used with a binary
that does not support libaio.  There are probably users using aio=native
who would be inconvenienced if QEMU suddenly refused to start their
guests.  In the future this will become an error.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c