qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [Qemu-devel] [PATCH v2 1/1] atapi: abort transfers with


From: Fam Zheng
Subject: Re: [Qemu-block] [Qemu-devel] [PATCH v2 1/1] atapi: abort transfers with 0 byte limits
Date: Fri, 11 Sep 2015 11:11:41 +0800
User-agent: Mutt/1.5.23 (2014-03-12)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]