qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] ATAPI pass through


From: Christoph Hellwig
Subject: Re: [Qemu-devel] [PATCH] ATAPI pass through
Date: Wed, 1 Jul 2009 10:43:25 +0200
User-agent: Mutt/1.3.28i

On Tue, Jun 30, 2009 at 06:55:42PM +0100, Bique Alexandre wrote:
> I can switch to aio_ioctl, and use CDROM_SEND_PACKET ioctl.

CDROM_SEND_PACKET has a rather horrible API and should be avoided.
Just use SG_IO like the the scsi passthrough code.  In fact there might
be some quite a few ways to unify that code if you're motivated.

> Is it possible to send multiple requests at the same time with aio_ioctl ? 

SG_IO sends one requests per ioctl, but you can have multiple requests
outstanding on a single file descriptor.

> When CONFIG_AIO is not available ?

aio_ioctl needs CONFIG_AIO - but on Linux hosts where you have
bsd/sg/etc it always is available.





reply via email to

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