ide: only constrain read/write requests to drive size, not other types
commitd66168ed687325aa6d338ce3a3cff18ce3098ed6
authorMichael Tokarev <mjt@tls.msk.ru>
Wed, 13 Aug 2014 07:23:31 +0000 (13 11:23 +0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Aug 2014 17:03:14 +0000 (15 18:03 +0100)
tree44b1407e01cad38ae5288133a8164af48cca7bf7
parenta83ceea8ffa5ed8f0b09d6ed1f33da6aae8b14e4
ide: only constrain read/write requests to drive size, not other types

Commit 58ac321135a introduced a check to ide dma processing which
constrains all requests to drive size.  However, apparently, some
valid requests (like TRIM) does not fit in this constraint, and
fails in 2.1.  So check the range only for reads and writes.

Cc: qemu-stable@nongnu.org
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/ide/core.c