From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmMDK-0000vx-3T for qemu-devel@nongnu.org; Tue, 20 Sep 2016 10:40:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmMDE-0000Cl-1j for qemu-devel@nongnu.org; Tue, 20 Sep 2016 10:40:01 -0400 Received: from 1.mo1.mail-out.ovh.net ([178.32.127.22]:40758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmMDD-0000CK-SK for qemu-devel@nongnu.org; Tue, 20 Sep 2016 10:39:55 -0400 Received: from player758.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id CC1D074E1 for ; Tue, 20 Sep 2016 16:39:54 +0200 (CEST) References: <75632046-c527-8d5f-6ac0-a40c28239579@redhat.com> <71298df5-d5de-e09f-5abd-9a8dbeefb16c@kaod.org> <3faff7d8-88f2-08c9-2d1d-6478872f4569@redhat.com> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: <07648f7a-24e2-9854-5d05-fe5dfb38c719@kaod.org> Date: Tue, 20 Sep 2016 16:39:48 +0200 MIME-Version: 1.0 In-Reply-To: <3faff7d8-88f2-08c9-2d1d-6478872f4569@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-ppc] KVM-PR is broken with current QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , qemu-ppc@nongnu.org Cc: QEMU Developers , David Gibson On 09/20/2016 04:24 PM, Thomas Huth wrote: > On 20.09.2016 16:04, C=C3=A9dric Le Goater wrote: >> On 09/20/2016 02:24 PM, C=C3=A9dric Le Goater wrote: >>> On 09/20/2016 01:44 PM, Thomas Huth wrote: >>>> Hi, >>>> >>>> when I try to run my guest in KVM-PR mode, current QEMU refuses to s= tart: >>>> >>>> $ sudo qemu-system-ppc64 -M pseries,accel=3Dkvm,kvm-type=3DPR \ >>>> -nographic -vga none -cpu POWER8 >>>> qemu: fatal: Unknown MMU model 851972 >>>> >>>> ... followed by a useless register dump. I've bisected the issue, an= d it >>>> seems like the problem has been introduced by this commit here: >>>> >>>> commit 4322e8ced5aaac7191958f09622d199fe61e2d87 >>>> ppc: Fix 64K pages support in full emulation >>>> >>>> Seems like KVM PR is using the "degraded" ISA variants (without the = 1TB >>>> segments), but the new POWERPC_MMU_64K flag has not been added to th= ose. >>>> Has this been done on purpose, or was this just by accident? >>> >>> The "degraded" architecture support has some history behind it : >>> >>> commit 126a79300971 added it >>> commit aa4bb5875231 removed it. >>> commit ba3ecda05e93 readded it. >>> commit 4322e8ced5aa forgot about it again >>> >>>> I can make KVM PR working again with the following patch: >>> >>> I think this is correct. Let's wait for Ben to chime in :) >> >> So I confirm the bug and the fix.=20 >> >> There are other issues after in the guest (kernel crashing). But I thi= nk >> these are related to TM which is not supported in KVM-PR. I am not sur= e >> where we are on that point. >=20 > There was a patch some months ago: >=20 > https://lists.gnu.org/archive/html/qemu-ppc/2016-04/msg00046.html >=20 > ... but I think it has never been included, as far as I can see. and with that patch, the guest fully boots. But David had some concerns on the way it is done. It would be nice to put some cycle on this.=20 Thanks, C.