Re: [Qemu-devel] [PATCH 5/5] ide: propagate the required alignment

2010-09-21 Thread Kevin Wolf
Am 12.09.2010 23:44, schrieb Christoph Hellwig: > IDE is a bit ugly in this respect. For one it doesn't really keep track > of a sector size - most of the protocol is in units of 512 bytes, and we > assume 2048 bytes for CDROMs which is correct most of the time. > > Second IDE allocates an I/O bu

[Qemu-devel] [PATCH 5/5] ide: propagate the required alignment

2010-09-12 Thread Christoph Hellwig
IDE is a bit ugly in this respect. For one it doesn't really keep track of a sector size - most of the protocol is in units of 512 bytes, and we assume 2048 bytes for CDROMs which is correct most of the time. Second IDE allocates an I/O buffer long before we know if we're dealing with a CDROM or