aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSasha Levin <levinsasha928@gmail.com>2011-11-02 07:41:13 +0200
committerWill Deacon <will.deacon@arm.com>2015-06-01 16:39:48 +0100
commit1664498d4a7d0c795ca5f590c61f9494ecd5e5f8 (patch)
treea4dac12e90d3ac72efb99b6554d93b0974ced27f /Makefile
parentfb434ac34166767815b17b53967bd0afe1157caf (diff)
downloadkvmtool-1664498d4a7d0c795ca5f590c61f9494ecd5e5f8.tar.gz
kvm tools: Add aio read write functions
This patch adds basic native vectored AIO functions. These functions should be optimized to process multiple io requests at once. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d9baa69d..d4598caa 100644
--- a/Makefile
+++ b/Makefile
@@ -115,6 +115,13 @@ ifeq ($(has_ZLIB),y)
LIBS += -lz
endif
+FLAGS_AIO := $(CFLAGS) -laio
+has_AIO := $(call try-cc,$(SOURCE_AIO),$(FLAGS_AIO))
+ifeq ($(has_AIO),y)
+ CFLAGS += -DCONFIG_HAS_AIO
+ LIBS += -laio
+endif
+
DEPS := $(patsubst %.o,%.d,$(OBJS))
# Exclude BIOS object files from header dependencies.