Received: from eggs.gnu.org ([2001:4830:134:3::10]:54333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmvVG-0007ku-F0 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 00:20:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmvVC-0004m5-CQ for qemu-devel@nongnu.org; Thu, 22 Sep 2016 00:20:54 -0400 Date: Thu, 22 Sep 2016 11:57:15 +1000 From: David Gibson Message-ID: <20160922015715.GA2085@umbus.fritz.box> References: <75632046-c527-8d5f-6ac0-a40c28239579@redhat.com> <71298df5-d5de-e09f-5abd-9a8dbeefb16c@kaod.org> <3faff7d8-88f2-08c9-2d1d-6478872f4569@redhat.com> <07648f7a-24e2-9854-5d05-fe5dfb38c719@kaod.org> <37465716-edd3-de38-2b29-44a3093cf312@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <37465716-edd3-de38-2b29-44a3093cf312@redhat.com> 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 Cc: =?iso-8859-1?Q?C=E9dric?= Le Goater , qemu-ppc@nongnu.org, Anton Blanchard , QEMU Developers --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 21, 2016 at 10:22:11AM +0200, Thomas Huth wrote: > On 20.09.2016 16:39, C=E9dric Le Goater wrote: > > On 09/20/2016 04:24 PM, Thomas Huth wrote: > >> On 20.09.2016 16:04, C=E9dric Le Goater wrote: > [...] > >>> There are other issues after in the guest (kernel crashing). But I th= ink > >>> these are related to TM which is not supported in KVM-PR. I am not su= re > >>> where we are on that point. > >> > >> There was a patch some months ago: > >> > >> https://lists.gnu.org/archive/html/qemu-ppc/2016-04/msg00046.html > >> > >> ... but I think it has never been included, as far as I can see. > >=20 > > 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 >=20 > Looking at the mail thread, I think TM should be currently disabled for > both, KVM-PR and TCG, i.e. only enabled for KVM-HV. The TM support in > TCG is just fake, since TBEGIN always fails. Right. So there's two questions here 1) Is qemu correctly advertising availability of TM in the device tree? If not we need to fix that, which might involve adding a kernel capability for the PR case. 2) Is the kvm unit test properly checking for availability of TM before executing? > Once we've got proper TM support in TCG, this can be easily changed > within QEMU. And once we've got TM support in KVM-PR, I think we should > also introduce a capability flag to KVM which can be used to inform QEMU > about this. >=20 > So I think Anton's patch currently just lacks the check for TCG. > Anton, if you've got some spare minutes, could you maybe send an updated > version of that patch? Sorry, which patch of Anton's? --=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 --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX4zp4AAoJEGw4ysog2bOS+2oP/0uopLbxo3keEKexH/5v+Tof OPhj7dEDRMfr5cnqjKJd+gl32N2fAFyQtwhAnfR6JX526c9qys/q4jrP8V4SYJN6 YFafiILCsDiRQssOgJdM4vO7bF/VdjF9K4HYTu/SWZ0EQrIXXDPX9CvJ0disQTAm 4gdJLoLpbQdaddc3xyTixLr8B5Vwgh4/9DfEKNFLLESsMFo7R2RR+UgM5JqX840M /L18ykiO3q9cZbsBw5eCytR4yjHf+nn+vMke+M3TODQDa1ydl1HiIlDNbP68oHsy g9CVZGUPJ+e7vl4aUMWQM+MIaVjb8Icq5MWllIg+y6skD/nmeypbJFGIsS3sxBp2 6ZIwrwCKu4HPoF8QjIanK0YQJjeFM6Ph0g8xekkc0s4TJxp+Ru9yNNijWlog0AYE MhW6nJ7wWFqnV/RnTN3abtDdZaXzUdS3Qm7ud94lg6/3BgKmFOVcPwpwKLIyEocs FNtOKap/fAV3/EivrFyjrVnW8S9yv3u09ITW1zVBhUB8TvOFaIUnKsQyqjd8cCa9 /A7BWy+WzA5P0b1wfEVsmYwQGTiK+eL2PxdLrSc0aj9xZkYYO3jQ2b9AlPWFzyy2 eVs74oWrDZpcWLehzXu7O+r0URoJzkYAReZ7453t5yXNUxx+Ffv/Y5uvStvMXSX7 ZyHFn/TGHjzhMO0GqlhJ =afTG -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--