[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] ATAPI pass through
From: |
Bique Alexandre |
Subject: |
Re: [Qemu-devel] [PATCH] ATAPI pass through |
Date: |
Tue, 30 Jun 2009 18:55:42 +0100 |
User-agent: |
KMail/1.11.4 (Linux/2.6.30-ARCH; KDE/4.2.4; x86_64; ; ) |
On Tuesday 30 June 2009 18:01:00 Christoph Hellwig wrote:
> On Tue, Jun 30, 2009 at 04:34:53PM +0100, Bique Alexandre wrote:
> > - I exported the data structure BDRVRawState from raw-posix.c in
> > raw-posix.h, because I use the file descriptor of the bsg device to poll,
> > write and read. Maybe there is a better solution, but I didn't find what
> > I was looking for in block.h.
>
> The way we do scsi passthrough (and ATAPI really just is SCSI
> passthrough over ATA with a slightly special command set) is to call
> into the ioctl/aio_ioctl methods of the block driver and let that do
> the actual I/O. I think your patch would be simpler and cleaner by
> following that model
I can switch to aio_ioctl, and use CDROM_SEND_PACKET ioctl.
Is it possible to send multiple requests at the same time with aio_ioctl ?
When CONFIG_AIO is not available ?
Thanks.
--
Alexandre Bique