Received: from eggs.gnu.org ([2001:4830:134:3::10]:39258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmwbF-0006U2-En for qemu-devel@nongnu.org; Thu, 22 Sep 2016 01:31:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmwbB-0002Nq-Be for qemu-devel@nongnu.org; Thu, 22 Sep 2016 01:31:08 -0400 Date: Thu, 22 Sep 2016 07:30:52 +0200 From: Thomas Huth Message-ID: <20160922073052.49560d19@thh440s> In-Reply-To: <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> <20160922015715.GA2085@umbus.fritz.box> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/30q096T0d0wgM/TTZmAVFTi"; protocol="application/pgp-signature" 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: David Gibson Cc: Anton Blanchard , qemu-ppc@nongnu.org, =?UTF-8?B?Q8OpZHJpYw==?= Le Goater , QEMU Developers --Sig_/30q096T0d0wgM/TTZmAVFTi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 22 Sep 2016 11:57:15 +1000 David Gibson wrote: > On Wed, Sep 21, 2016 at 10:22:11AM +0200, Thomas Huth wrote: > > On 20.09.2016 16:39, C=C3=A9dric Le Goater wrote: > > > On 09/20/2016 04:24 PM, Thomas Huth wrote: > > >> On 20.09.2016 16:04, C=C3=A9dric Le Goater wrote: > > [...] > > >>> There are other issues after in the guest (kernel crashing). But I = think > > >>> these are related to TM which is not supported in KVM-PR. I am not = sure > > >>> 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 concer= ns > > > 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. >=20 > Right. So there's two questions here >=20 > 1) Is qemu correctly advertising availability of TM in the device > tree? If I've got that right, it's currently always advertising TM, even if it's not really available (in TCG mode and PR mode). > If not we need to fix that, which might involve adding a kernel > capability for the PR case. >=20 > 2) Is the kvm unit test properly checking for availability of TM > before executing? Not yet. That's why it would be good to get a proper way for testing for the availability of TM --> i.e. something like Anton's patch. > > 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? >=20 > Sorry, which patch of Anton's? This one: https://lists.gnu.org/archive/html/qemu-ppc/2016-04/msg00415.html Thomas --Sig_/30q096T0d0wgM/TTZmAVFTi Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJX42ySAAoJEC7Z13T+cC21Hl4P/3IDfgV1Mjwrvby0CH/KVyr2 Y75TMnh29OPeC06PGd6mGg+QCUl/RiHd+UTecqce/1At9zAnL4KQfxOZ/P+GWLkC oyAyXjzkxJAwR4vRjGxvzrzm2AusSg8HmkV6Nv74D6NLsiu3w1IXvXMeKeRX+aNC l53pKx94pMHjI0J3KtNPJ6VGQjR6+F252H6aGikiGx2TfQ7IAHW+t9+jQ9qYa8xW a5iD3oUcvkPm4nS9e1AjmygZleJLu93UfGaGt/W3ORVFv/i4v32Y8lgR0s53KgkY HdxkP9E3t8FnUzjz+XrroFH1HyUY+QJxl870Kigefk5rRzRz+D6NEs50HhLTtiGE CIp5C1sBH2p+oaT4bcM8XbrDn1TJ3TL/bRtPhD1z9TCeNC/A+DXyisIoo9xnrvY5 2oYNvVk2Wj6JACr+kIMFQ0DGXAavIv3eictpUVk8CfquH34xfpFqv3E6marNYSPD vgsVRcyVKfwRfhdgN9raRZutlzfCOcReUojILjDGMrv7Jm4KV5DTV8979GbLWbD5 SmzTBidil3o2fbpBlD2CkKXi/YG3jfkMfBrnPm867a3A+J8Fa5jsdQT/D5S02JZo XvKh7/DQkQuVfGVU9sB9CeR9SI3/0KEO5jp0obXhkDmIU2n5LyulNWRaRukRk0GJ +xIvfj3l2DCCZUtnznZC =ReDL -----END PGP SIGNATURE----- --Sig_/30q096T0d0wgM/TTZmAVFTi--