From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwSe3-00028J-9x for qemu-devel@nongnu.org; Wed, 01 Aug 2012 02:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwSe2-0003F1-DS for qemu-devel@nongnu.org; Wed, 01 Aug 2012 02:42:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwSe2-0003Eq-5a for qemu-devel@nongnu.org; Wed, 01 Aug 2012 02:42:58 -0400 Message-ID: <5018CFDC.4020703@redhat.com> Date: Wed, 01 Aug 2012 08:42:36 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1343346200-19850-1-git-send-email-nab@linux-iscsi.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC-v5] tcm_vhost: Initial merge for vhost level target fabric driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Northup Cc: Jens Axboe , Anthony Liguori , linux-scsi , kvm-devel , "Michael S. Tsirkin" , Greg Kroah-Hartman , qemu-devel , "Nicholas A. Bellinger" , lf-virt , Anthony Liguori , target-devel , Hannes Reinecke , Zhi Yong Wu , Christoph Hellwig , Stefan Hajnoczi Il 31/07/2012 22:52, Eric Northup ha scritto: > It seems to me like this is not the way that virtio devices are supposed > to behave - if a guest splits a virtio_scsi_cmd_req or _resp across a > page boundary, then this code won't work. Buffers can cover several pages. Of course, data buffers have to be at least sector aligned, but this restriction does not apply to request/response descriptors. > Quoting the 'Message Framing' part of the virtio spec: > > "In particular, no implementation should use the descriptor boundaries > to determine the size of any header in a request. " True, but this has never matched reality. Paolo