]> git.ipfire.org Git - thirdparty/qemu.git/commit
ide: only constrain read/write requests to drive size, not other types
authorMichael Tokarev <mjt@tls.msk.ru>
Wed, 13 Aug 2014 07:23:31 +0000 (11:23 +0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 26 Aug 2014 21:58:56 +0000 (16:58 -0500)
commitbd4740621c016ed7f45cb6ab366e0d17c693bfc9
tree8deba812c60b84b9e282367d5542e4b15e2575a3
parente22d5dc07350b81006ca6b9bf5fd7b517e2574ee
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>
(cherry picked from commit d66168ed687325aa6d338ce3a3cff18ce3098ed6)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ide/core.c