qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [PATCH 2/3] Move aio implementation out of raw bloc


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] Re: [PATCH 2/3] Move aio implementation out of raw block driver
Date: Tue, 23 Sep 2008 16:53:31 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080723)

Ryan Harper wrote:
>> So what happens if !defined(CONFIG_AIO)?  By my reading of the code, 
>> aio_drv will be NULL and this will SEGV.
> 
> raw_aio_read/write/cancel aren't included in the bdrv structure unless
> CONFIG_AIO is defined.  Rather in bdrv_register, the aio emulation
> functions are used instead.

How about providing a aio interface implementation which simply uses
read/write syscalls (thereby not being really async obviously)?  Then
use that as fallback instead of aio emulation?  And also drop CONFIG_AIO
then?

cheers,
  Gerd




reply via email to

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