qtest/ide: add another short PRDT test flavor
commit58732810230719765a6618004be8f0070c9f3d31
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 20 Jul 2015 16:21:18 +0000 (20 12:21 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 20 Jul 2015 16:21:18 +0000 (20 12:21 -0400)
tree798fd49dc3df9e62678d9c105967d06a7e4b2c28
parentdcc8a3ab632d0f11a1bf3b08381cf0f93e616b9f
qtest/ide: add another short PRDT test flavor

The existing short PRDT test case does not transfer any data because the
first PRD is less than 1 sector.

This patch adds another short PRDT test case where the first sector can
be read but the PRDT is still smaller than the requested number of
sectors.  This exercises a different code path in ide_dma_cb().

Cc: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1435770571-9906-1-git-send-email-stefanha@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
tests/ide-test.c