Received: from eggs.gnu.org ([2001:4830:134:3::10]:60610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP4Tt-0007gp-15 for qemu-devel@nongnu.org; Mon, 18 Jul 2016 05:04:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP4To-0002Pi-QW for qemu-devel@nongnu.org; Mon, 18 Jul 2016 05:04:51 -0400 References: <1468570225-14101-1-git-send-email-thuth@redhat.com> <20160718005236.GD16769@voom.fritz.box> <20160718105944.3908f7ca@bahia.lan> From: Thomas Huth Message-ID: <9c8dae5e-d2bd-fa21-f12e-31fd21ca97bc@redhat.com> Date: Mon, 18 Jul 2016 11:04:39 +0200 MIME-Version: 1.0 In-Reply-To: <20160718105944.3908f7ca@bahia.lan> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="USl80QT2dlKJ9FS2bsOca4FUSVaGs83aK" Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Yet another fix for the huge page support detection mechanism List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz , David Gibson Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --USl80QT2dlKJ9FS2bsOca4FUSVaGs83aK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 18.07.2016 10:59, Greg Kurz wrote: > On Mon, 18 Jul 2016 10:52:36 +1000 > David Gibson wrote: >=20 >> On Fri, Jul 15, 2016 at 10:10:25AM +0200, Thomas Huth wrote: >>> Commit 86b50f2e1bef ("Disable huge page support if it is not availabl= e >>> for main RAM") already made sure that huge page support is not announ= ced >>> to the guest if the normal RAM of non-NUMA configurations is not back= ed >>> by a huge page filesystem. However, there is one more case that can g= o >>> wrong: NUMA is enabled, but the RAM of the NUMA nodes are not configu= red >>> with huge page support (and only the memory of a DIMM is configured w= ith >>> it). When QEMU is started with the following command line for example= , >>> the Linux guest currently crashes because it is trying to use huge pa= ges >>> on a memory region that does not support huge pages: >>> >>> qemu-system-ppc64 -enable-kvm ... -m 1G,slots=3D4,maxmem=3D32G -obje= ct \ >>> memory-backend-file,policy=3Ddefault,mem-path=3D/hugepages,size=3D= 1G,id=3Dmem-mem1 \ >>> -device pc-dimm,id=3Ddimm-mem1,memdev=3Dmem-mem1 -smp 2 \ >>> -numa node,nodeid=3D0 -numa node,nodeid=3D1 >>> >>> To fix this issue, we've got to make sure to disable huge page suppor= t, >>> too, when there is a NUMA node that is not using a memory backend wit= h >>> huge page support. >>> >>> Fixes: 86b50f2e1befc33407bdfeb6f45f7b0d2439a740 >>> Signed-off-by: Thomas Huth >>> --- >>> target-ppc/kvm.c | 10 +++++++--- >>> 1 file changed, 7 insertions(+), 3 deletions(-) =20 >> >> Applied to ppc-for-2.7, thanks. >> >=20 > It looks like my replies to this patch were ignored... no big deal thou= gh :) I'll try to come up with an additional patch that fixes the remaining problem that you've found... Meanwhile, did you find out why you get that assertion that I was not able to recreate? Could you maybe post the exact command line to trigger that assertion? Thomas --USl80QT2dlKJ9FS2bsOca4FUSVaGs83aK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJXjJusAAoJEC7Z13T+cC21kUMQAJg+a72fnjlbORutwuXXeOzS GqdG/ONRx2Ner1ugyLMdGv7N+nT6+WGOr300g97LPsgP4EV+qJipHine8ilxZd4p Wl07vC0NiCMCqX5WWvIf3dPtQ9Ulf2E43rf3PG5HCzqrdhNRDOUOnyOkvH5b4f1w YLvMoSJefYPOuXmBbPCw2MCuT5nB1dfJgM5YwSUfcKHaokusdBVRAtFcHhY/ndoZ /Qg9kBb5yJ15rhdVBDYGzlA19lbnzvY5EphB3tOEPrEtRR74YuRyz9xSt799tIEM 5f0jPvcm4LgdUBe15t7ZciWvt01xKTmrhKMhA0LXoymXj/ak2RpnGrVuTMcxcdj3 3iexViqlJPjk4ptP0pn0hj0LDUG0+4NWEk2rh1WFLRvw4g0sm426crLdF8NMAlSS 5RjCs2wCD1/osIAQw53Gku+qbfMnaN0AvnNXWGMr8WvAXtSPPfkRf5S+NXv1yVeB wPlEbtQuQsD0lbp+/htTU+woE1++IEwrSIIbyq6n+6GSAl2KnhEalCIhu5hExJcC 0NjYnco/jJiTmXUHno6TnTcjCTKlCoY7DUjnxVaJW/VX9LlpvNRfyoIPgtk3uo17 sQa+8KPSDlS+h/QzHswiYDCjU+tWViTpnPPQCzXnfyIEl1FmlfxSSpTWO6jGmRp9 ECyG/rfRm+q3cwpagT6W =66mD -----END PGP SIGNATURE----- --USl80QT2dlKJ9FS2bsOca4FUSVaGs83aK--