From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asias He Subject: Re: [PATCH] vhost-blk: Add vhost-blk support v2 Date: Fri, 19 Oct 2012 14:44:05 +0800 Message-ID: <5080F6B5.5070608@redhat.com> References: <1349769918-8611-1-git-send-email-asias@redhat.com> <20121011124125.GA8074@redhat.com> <507818BE.7060404@redhat.com> <87d30go1g7.fsf@rustcorp.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87d30go1g7.fsf@rustcorp.com.au> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Rusty Russell Cc: virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, "Michael S. Tsirkin" List-Id: virtualization@lists.linuxfoundation.org On 10/18/2012 12:20 PM, Rusty Russell wrote: > Asias He writes: >>>> +#define BLK_HDR 0 >>> >>> What's this for, exactly? Please add a comment. >> >> The block headr is in the first and separate buffer. > > Please don't assume this! We're trying to fix all the assumptions in > qemu at the moment. > > vhost_net handles this correctly, taking bytes off the descriptor chain > as required. Well, I will switch to "no assumption about the buffer layout" in next version. -- Asias