From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1zeK-0003FN-00 for qemu-devel@nongnu.org; Fri, 09 Sep 2011 07:53:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1zeI-0005IA-Qy for qemu-devel@nongnu.org; Fri, 09 Sep 2011 07:53:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1zeI-0005I3-F0 for qemu-devel@nongnu.org; Fri, 09 Sep 2011 07:53:34 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p89BrX66001645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 9 Sep 2011 07:53:33 -0400 Message-ID: <4E69FE3A.3010307@redhat.com> Date: Fri, 09 Sep 2011 13:53:30 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1315408862-15178-1-git-send-email-pbonzini@redhat.com> <1315408862-15178-3-git-send-email-pbonzini@redhat.com> <4E69FAF0.3040308@redhat.com> In-Reply-To: <4E69FAF0.3040308@redhat.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/5] dma-helpers: allow including from target-independent code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org On 09/09/2011 01:39 PM, Kevin Wolf wrote: > Am 07.09.2011 17:20, schrieb Paolo Bonzini: >> Target-independent code cannot construct sglists, but it can take >> them from the outside as a black box. Allow this. >> >> Signed-off-by: Paolo Bonzini > > I was hoping to find the use case for this somewhere in the rest of the > series, but there doesn't seem to be an example. Indeed, unfortunately not yet. > How can you make use of the dma.h functions when you can't build a > QEMUSGList? Or would you have a target-dependent part that builds it and > passes it to a target-independent part? Exactly, scsi-disk/scsi-bus will pick the QEMUSGList from the HBA and treat it opaquely. Paolo