From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV2di-00067L-Nd for qemu-devel@nongnu.org; Wed, 24 Apr 2013 12:33:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UV2dh-0001NK-EJ for qemu-devel@nongnu.org; Wed, 24 Apr 2013 12:33:50 -0400 Received: from mail-qe0-f50.google.com ([209.85.128.50]:47982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV2dh-0001N9-9s for qemu-devel@nongnu.org; Wed, 24 Apr 2013 12:33:49 -0400 Received: by mail-qe0-f50.google.com with SMTP id a11so1380282qen.9 for ; Wed, 24 Apr 2013 09:33:48 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5178095D.7080808@redhat.com> Date: Wed, 24 Apr 2013 18:33:33 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1366804881-553-1-git-send-email-david@gibson.dropbear.id.au> <1366804881-553-5-git-send-email-david@gibson.dropbear.id.au> <1366816359.2918.703.camel@bling.home> In-Reply-To: <1366816359.2918.703.camel@bling.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/5] vfio: Move container list to DMAContext List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: aik@ozlabs.ru, qemu-devel@nongnu.org, David Gibson Il 24/04/2013 17:12, Alex Williamson ha scritto: >> > At the moment, vfio maintains a global list of containers that are assumed >> > to be more or less interchangeable, since they are all set up with a >> > MemoryListener to have all of system memory mapped. However, that only >> > makes sense if all the containers are used on devices which really do >> > expect a dma address space identical to system memory. >> > >> > This patch moves towards that by making the list of containers per >> > DMAContext (which corresponds to a dma address space) instead of global. > This seems like an unnecessary intrusion into common code. Why not > create a vfio specific list of dma objects, each with a list of > containers? Thanks, Yeah, I suggest that this is re-evaluated on top of the iommu patches. You can find them at git://github.com/bonzini/qemu.git, branch iommu. It seems to work with pseries, at least my guest crashes at the same place with and without. USB works, and so do VGA and spapr-vscsi. Paolo