From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [RFC-v5] tcm_vhost: Initial merge for vhost level target fabric driver Date: Wed, 01 Aug 2012 08:42:36 +0200 Message-ID: <5018CFDC.4020703@redhat.com> References: <1343346200-19850-1-git-send-email-nab@linux-iscsi.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: Eric Northup Cc: Jens Axboe , Anthony Liguori , linux-scsi , kvm-devel , "Michael S. Tsirkin" , Greg Kroah-Hartman , qemu-devel , lf-virt , Anthony Liguori , target-devel , Zhi Yong Wu , Christoph Hellwig , Stefan Hajnoczi List-Id: virtualization@lists.linuxfoundation.org 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