[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function
From: |
Carlo Marcelo Arenas Belon |
Subject: |
Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function |
Date: |
Sun, 25 May 2008 02:53:19 -0500 |
User-agent: |
Mutt/1.4.1i |
On Sat, May 24, 2008 at 12:31:01PM +0200, Alexander Graf wrote:
> Is there anything particularly wrong with this patch?
no, but the SPEC (I used MMC6 r01) says :
6.5.1.4 Allocation Length
The Allocation Length field specifies the maximum length in bytes of the Get
Configuration response data. An Allocation Length field of zero indicates
that no data shall be transferred. This condition shall not be considered an
error.
this is only implicitly supported by truncating the response using max_len
for the ide_atapi_cmd_reply with your patch and so the work of generating the
response is still happening regardless.
> Does it break any guest OSs I am not aware of?
the original implementation (*) broke [Open]Solaris by overflowing the buffer
that was used in the calls to detect the CDROM/DVDROM (using a 8 byte buffer)
Carlo
(*) http://svn.savannah.gnu.org/viewvc/trunk/hw/ide.c?root=qemu&r1=3147&r2=3161
- [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/21
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/24
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/24
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function,
Carlo Marcelo Arenas Belon <=
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/25
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Carlo Marcelo Arenas Belon, 2008/05/25
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/26
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/26
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Carlo Marcelo Arenas Belon, 2008/05/27
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/29