From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypcb1-0000TZ-Mh for qemu-devel@nongnu.org; Tue, 05 May 2015 09:09:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ypcb0-00018p-Kg for qemu-devel@nongnu.org; Tue, 05 May 2015 09:09:11 -0400 Date: Tue, 5 May 2015 22:31:25 +1000 From: David Gibson Message-ID: <20150505123125.GQ14090@voom.redhat.com> References: <1429964684-23872-1-git-send-email-aik@ozlabs.ru> <1429964684-23872-8-git-send-email-aik@ozlabs.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UkA0xnprSsTJHodh" Content-Disposition: inline In-Reply-To: <1429964684-23872-8-git-send-email-aik@ozlabs.ru> Subject: Re: [Qemu-devel] [PATCH qemu v7 07/14] spapr_iommu: Add root memory region List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Alex Williamson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Alexander Graf --UkA0xnprSsTJHodh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 25, 2015 at 10:24:37PM +1000, Alexey Kardashevskiy wrote: > We are going to have multiple DMA windows at different offsets on > a PCI bus. For the sake of migration, we will have as many TCE table > objects pre-created as many windows supported. > So we need a way to map windows dynamically onto a PCI bus > when migration of a table is completed but at this stage a TCE table > object does not have access to a PHB to ask it to map a DMA window > backed by just migrated TCE table. >=20 > This adds a "root" memory region (UINT64_MAX long) to the TCE object. > This new region is mapped on a PCI bus with enabled overlapping as > there will be one root MR per TCE table, each of them mapped at 0. > The actual IOMMU memory region is a subregion of the root region and > a TCE table enables/disables this subregion and maps it at > the specific offset inside the root MR which is 1:1 mapping of > a PCI address space. >=20 > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson --=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 --UkA0xnprSsTJHodh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVSLgdAAoJEGw4ysog2bOSXeAP/1iS5cdF0KaAGm2JpC+IbqJU 6X8TpBmS05shGxsrqD+QAA/G2NyC0ynRr9IOVE5tuhC1211bl74z23wS4HhEOX1h DXFFHgTrDRulpEVEFQxaT3MW0U3eV2uWUbLzFcr6B1j3tjhe+YAVKvqQ3oJP0UGl BSsDExvF0q1EGPtGkIkQa/tRjDb3DUESXgn/Vj23Hk7Z3nRt8OkYAUIKRUjKDy0k 6qZfboSKNyb2zxVTzaySroBrARkCKrC1xUCL2YGy8qIOlkWKYpF8EIIc+bLjCvQ/ UoMZPfxbOzBZC042ZHxsQlndq3yzelUmgMaKoJc8v3e8mkx1U3jik4+xwrhY+Mna Fo0rsV+KlySBBS5BgDuz5JG0ViT+A5sZ35QLwwgsD5tmCNQjDj1hESGUMeIeT0EL cFpJCXigyQDLoKV8cq2Wds8sV5ryhyRMOVnLtanrYORLya2GrvT3ylrcOG8tyCME a7Me6nbLKC9BHbArg/gV1FXxo4dhiTHWP9eGBXOn3BYosJ1QmUwUxaL5b2uLx5aJ n1+EZPZU0wmmTMPjBXvMs8qgkWoYypoMoaWIi6a0ufS2T7Vbst/qC6AGYF73QoWN 1Jv0aAPvskh2BSFPDYptkAhmDhZ9a+vjuZpTNQfEl6mcWy9OhM6+ugZVQQL9XMWy EkCmilIWPQ8eYDPMNVuy =m4aw -----END PGP SIGNATURE----- --UkA0xnprSsTJHodh--