From: John Snow <jsnow@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: kwolf@redhat.com, armbru@redhat.com, qemu-block@nongnu.org,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 1/1] atapi: abort transfers with 0 byte limits
Date: Mon, 14 Sep 2015 12:03:12 -0400 [thread overview]
Message-ID: <55F6EFC0.3090501@redhat.com> (raw)
In-Reply-To: <20150911031141.GA2592@ad.nay.redhat.com>
On 09/10/2015 11:11 PM, Fam Zheng wrote:
> On Thu, 09/10 19:20, John Snow wrote:
>>
>> + /* Nondata commands permit the byte_count_limit to be 0.
>> + * If this is a data-transferring PIO command and BCL is 0,
>> + * we abort at the /ATA/ level, not the ATAPI level.
>> + * See ATA8 ACS3 section 7.17.6.49 and 7.21.5 */
>> + if (!(atapi_cmd_table[s->io_buffer[0]].flags & NONDATA)) {
>> + /* TODO: Check IDENTIFY data word 125 for default BCL (currently 0) */
>> + uint16_t byte_count_limit = s->lcyl | (s->hcyl << 8);
>> + if !(byte_count_limit || s->atapi_dma) {
>
> !( ?
>
> Fam
>
Ugh. Thinko'd the outer (), and didn't apparently rebuild. :(
prev parent reply other threads:[~2015-09-14 16:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-10 23:20 [Qemu-devel] [PATCH v2 0/1] atapi: abort transfers with 0 byte limits John Snow
2015-09-10 23:20 ` [Qemu-devel] [PATCH v2 1/1] " John Snow
2015-09-11 3:11 ` Fam Zheng
2015-09-14 16:03 ` John Snow [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55F6EFC0.3090501@redhat.com \
--to=jsnow@redhat.com \
--cc=armbru@redhat.com \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.