From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM6Fa-0003JO-Vc for qemu-devel@nongnu.org; Wed, 20 Jan 2016 22:49:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM6FW-0001Ri-VW for qemu-devel@nongnu.org; Wed, 20 Jan 2016 22:49:34 -0500 Date: Thu, 21 Jan 2016 14:50:20 +1100 From: David Gibson Message-ID: <20160121035020.GK27454@voom.redhat.com> References: <1453340463-7654-1-git-send-email-david@gibson.dropbear.id.au> <56A038FE.4060700@ozlabs.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="73fGQZLCrFzENemP" Content-Disposition: inline In-Reply-To: <56A038FE.4060700@ozlabs.ru> Subject: Re: [Qemu-devel] [PATCH] pseries: Allow TCG h_enter to work with hotplugged memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: pbonzini@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, bharata@linux.vnet.ibm.com --73fGQZLCrFzENemP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 21, 2016 at 12:48:46PM +1100, Alexey Kardashevskiy wrote: > On 01/21/2016 12:41 PM, David Gibson wrote: > >The implementation of the H_ENTER hypercall for PAPR guests needs to > >enforce correct access attributes on the inserted HPTE. This means > >determining if the HPTE's real address is a regular RAM address (which > >requires attributes for coherent access) or an IO address (which requires > >attributes for cache-inhibited access). > > > >At the moment this check is implemented with (raddr < machine->ram_size), > >but that only handles addresses in the base RAM area, not any hotplugged > >RAM. > > > >This patch corrects the problem with a new helper. > > > >Signed-off-by: David Gibson >=20 >=20 > Reviewed-by: Alexey Kardashevskiy Thanks, merged to ppc-for-2.6. --=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 --73fGQZLCrFzENemP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWoFV8AAoJEGw4ysog2bOSsWYQAJ+//CEn8iGBbRaaNtLjt3eU y1pizz++GjqSRRcIbJ0wHTH78ho8F/ONjZaAPsK+acjigZb1PfmovZ5wRfbgOjYI 6hIjpcB+zTqcv+Pnj6p42V+mISCyD4EiNUqAZmYpW0TrDnQls6PE96k9Byt3RuX7 pIQTazOEbZnwWbzt75Sks2XOMJoVYX1SyeGa41Y/ShSPknSZMfY5XBZ3pgf4T2q/ ZF9LrPLFbhTHx+KvsenrRFDYs3QX+kx1eDepM2Wcobr31XTPX3RTt127WsgLE7pL 6YiYYL7yPML/TXkOsqMp7csy0fPfcn6/AZw2pdaYIhc/my/ASMR5y9PkqaR+nKFk bcG71DzbVaQYWC/UwwMgqmb9981EAB/AdWIgWWak/TA/IGMfSHxt5vTYIp5RT5Sv zTsC9+0yA8Q1w1WB/JD3khC9q/1tueVYKQXoNqL6/M+oL2pZebaftWnC3y4bSr8G QRBlkYe6wUC5N2X+6Z7ilRBBHpWa3kH+8wSQQvqOSYwPyjnrzU35H64ne0KqeA38 2NG2BcxrhoZh4tfBGhqPyf2FILsnnwtxzKn4R3y4btpQhRe6dKE2qN/49oGY79Q6 OgZaStek/xp9sam5TsKkM1v/88+7ClJQDfKUsvjtlHrNbLikrD1dm7vzUubV+Dox pARoqB8mC75xJP+F4hIe =YkRF -----END PGP SIGNATURE----- --73fGQZLCrFzENemP--