Received: from eggs.gnu.org ([208.118.235.92]:34030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVGTz-00028Q-SD for qemu-devel@nongnu.org; Thu, 25 Apr 2013 03:20:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVGTv-00040v-0p for qemu-devel@nongnu.org; Thu, 25 Apr 2013 03:20:43 -0400 Received: from ozlabs.org ([203.10.76.45]:46919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVGTu-00040f-Lm for qemu-devel@nongnu.org; Thu, 25 Apr 2013 03:20:38 -0400 Date: Thu, 25 Apr 2013 16:36:36 +1000 From: David Gibson Message-ID: <20130425063636.GQ4297@truffula.fritz.box> 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> <5178095D.7080808@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p8mP+8RrBGerSNjm" Content-Disposition: inline In-Reply-To: <5178095D.7080808@redhat.com> 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: Paolo Bonzini Cc: aik@ozlabs.ru, Alex Williamson , qemu-devel@nongnu.org --p8mP+8RrBGerSNjm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 24, 2013 at 06:33:33PM +0200, Paolo Bonzini wrote: > Il 24/04/2013 17:12, Alex Williamson ha scritto: > >> > At the moment, vfio maintains a global list of containers that are a= ssumed > >> > to be more or less interchangeable, since they are all set up with a > >> > MemoryListener to have all of system memory mapped. However, that o= nly > >> > makes sense if all the containers are used on devices which really do > >> > expect a dma address space identical to system memory. > >> >=20 > >> > This patch moves towards that by making the list of containers per > >> > DMAContext (which corresponds to a dma address space) instead of glo= bal. > > 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, >=20 > 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. Ok, I'll have a look when I get a chance. Any guesses as to when they might reach mainline? --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --p8mP+8RrBGerSNjm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlF4zvQACgkQaILKxv3ab8YORACfV/OASPMMGavE7bOldvJfQKHM jNwAn2sBWCy0yioZhZNh2E+OH9bRP2Fx =EKqc -----END PGP SIGNATURE----- --p8mP+8RrBGerSNjm--