From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK75T-0005N6-MK for qemu-devel@nongnu.org; Mon, 25 Mar 2013 09:05:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UK75Q-0001nE-8x for qemu-devel@nongnu.org; Mon, 25 Mar 2013 09:05:19 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:57684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK75P-0001n0-QD for qemu-devel@nongnu.org; Mon, 25 Mar 2013 09:05:16 -0400 Date: Mon, 25 Mar 2013 09:05:11 -0400 (EDT) From: Paolo Bonzini Message-ID: <1785134388.13096135.1364216711974.JavaMail.root@redhat.com> In-Reply-To: <514DD805.50604@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 10/12] Add qemu_put_buffer_no_copy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael R. Hines" Cc: Orit Wasserman , quintela@redhat.com, chegu vinod , qemu-devel@nongnu.org, mst@redhat.com ----- Messaggio originale ----- > Da: "Michael R. Hines" > A: "Orit Wasserman" > Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, mst@redhat.com, "chegu vinod" , > quintela@redhat.com > Inviato: Sabato, 23 marzo 2013 17:27:49 > Oggetto: Re: [Qemu-devel] [RFC 10/12] Add qemu_put_buffer_no_copy > > Can you add a "flag" or something to indicate that the iov pointer > belongs to RAM and not to device state? > > That way, I could re-use this code for RDMA - if I see this flag, I > will know to send to RDMA..... I am not sure you can, because the function will be preceded by a qemu_put_be64 to store the header. That header is not sent in the RDMA case, isn't it? Paolo