qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-commits] [COMMIT 5c6c3a6] raw-posix: add Linux native AIO supp


From: Stefan Weil
Subject: Re: [Qemu-commits] [COMMIT 5c6c3a6] raw-posix: add Linux native AIO support
Date: Fri, 28 Aug 2009 10:07:15 +0200
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)

Anthony Liguori schrieb:
> From: Christoph Hellwig <address@hidden>
>
> Now that do have a nicer interface to work against we can add Linux native
> AIO support. It's an extremly thing layer just setting up an iocb for
> the io_submit system call in the submission path, and registering an
> eventfd with the qemu poll handler to do complete the iocbs directly
> from there.
>
> This started out based on Anthony's earlier AIO patch, but after
> estimated 42,000 rewrites and just as many build system changes
> there's not much left of it.
>
> To enable native kernel aio use the aio=native sub-command on the
> drive command line. I have also added an option to qemu-io to
> test the aio support without needing a guest.
>
> Signed-off-by: Christoph Hellwig <address@hidden>
> Signed-off-by: Anthony Liguori <address@hidden>
>
> diff --git a/Makefile b/Makefile
> index b0a84f3..bdac9b3 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -56,6 +56,7 @@ recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
> block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
> block-obj-y += nbd.o block.o aio.o aes.o osdep.o
> block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
> +block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
>
> block-nested-y += cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o
> vpc.o vvfat.o
> block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o
> qcow2-snapshot.o
...

Hello

Linking qemu-nbd fails with latest QEMU (maybe caused by this commit):

LINK  qemu-nbd
block/raw-posix.o: In function `raw_aio_submit':
/home/stefan/src/qemu/savannah/qemu/block/raw-posix.c:546: undefined
reference to `laio_submit'
collect2: ld returned 1 exit status
make: *** [qemu-nbd] Fehler 1

Regards
Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]