[Qemu-devel] [PATCH v2 14/15] sd: Check for READ_MULTIPLE_BLOCK size limit violation first

2017-12-14 Thread Andrey Smirnov
Check for READ_MULTIPLE_BLOCK size limit violation first as opposed to doing at the end of the command handler. Consider the following scenario: Emulated host driver is trying to read last byte of the last sector via CMD18/ADMA, so what would happen is the following: 1. "ret" is filled with desir

Re: [Qemu-devel] [PATCH v2 14/15] sd: Check for READ_MULTIPLE_BLOCK size limit violation first

2017-12-14 Thread Andrey Smirnov
On Thu, Dec 14, 2017 at 6:52 AM, Andrey Smirnov wrote: > Check for READ_MULTIPLE_BLOCK size limit violation first as opposed to > doing at the end of the command handler. Consider the following > scenario: > > Emulated host driver is trying to read last byte of the last sector > via CMD18/ADMA, so