Received: from eggs.gnu.org ([2001:4830:134:3::10]:38295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUT2b-0003Mj-Pv for qemu-devel@nongnu.org; Tue, 02 Aug 2016 02:19:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUT2a-0005LB-9R for qemu-devel@nongnu.org; Tue, 02 Aug 2016 02:19:01 -0400 Date: Tue, 2 Aug 2016 16:20:50 +1000 From: David Gibson Message-ID: <20160802062050.GZ2588@voom.fritz.box> References: <1470111908-8456-1-git-send-email-david@gibson.dropbear.id.au> <20160802050434.GC16350@in.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eP8xGX2lG1UwfyBj" Content-Disposition: inline In-Reply-To: <20160802050434.GC16350@in.ibm.com> Subject: Re: [Qemu-devel] [PATCH] spapr: Don't support query-hotpluggable-cpus on earlier pseries machine types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bharata B Rao Cc: imammedo@redhat.com, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, agraf@suse.de, pkrempa@redhat.com --eP8xGX2lG1UwfyBj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 02, 2016 at 10:34:34AM +0530, Bharata B Rao wrote: > On Tue, Aug 02, 2016 at 02:25:08PM +1000, David Gibson wrote: > > On Power, support for vCPU hotplug is new in qemu 2.7. However, we > > currently implement the query_hotpluggable_cpus hook the same for all > > pseries machine type versions. > >=20 > > However, the old-style CPU initialization doesn't work with the new que= ry > > code, meaning that attempting to use query-hotpluggable-cpus on a > > pseries-2.6 or earlier VM will cause qemu to SEGV. > >=20 > > This fixes the problem by simply disabling the hook for earlier machine > > types. >=20 > I had sent a patch to fix this and a couple of other related issues > some time back and it indeed was accepted into your ppc-for-2.7 branch. >=20 > https://lists.gnu.org/archive/html/qemu-devel/2016-07/msg01539.html >=20 > Only now I am realizing that somehow that patch didn't make it to mainlin= e. Oh.. good point. Sorry, that one somehow slipped through the cracks. So, the remaining question is, what's the preferred behaviour for older machine types: 1) should query-hotpluggable-cpus give an error, the same as it does on machine types which have never supported it (this is what my patch does) or 2) Should query-hotpluggable-cpus succeed, but return an empty list? (this is what Bharata's patch does) Igor and / or Peter, do you have an opinion on which behaviour is preferabl= e? --=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 --eP8xGX2lG1UwfyBj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXoDvCAAoJEGw4ysog2bOSQbAQANQK2jsQWC4Y/a1446VvEJ1B FOAUEeXHL86stqqO1dWEqO1celvnUqLenN7ddyTfZwIdrmAjuMdtueCC4341IGss jmV1ubEIyjgyBEnzl3iiCkzBqJDIoAYTQfo1Hxv4unpflenbLHTVVyBt+cSSzHoV 3VxoCQqF3PoCYj0A9C/g8mNt9vkRzUuCz1EL28MREVAtjE+jeLbMbfIQKQSH27zU pP7X2Xr6n08UzbcjRX/V3d7n9ziMU+a6f34YBDqLJYRPXOMTuET+ojSQsCfPSUmM xnRyHU1nDRcAEv71nwH7kstLUhO9oZOQ9mrlPYdJctfodz5pIlDQ6VNifAo+66Fl UfjeW4Z5yuXtAsmlwgP8N7KxFDLQSyCTFm/Nr8hYlrsBatWed2EyIJsQrAdxYast sgipFIUpopOE7fiKvx8JP1Lll5JBx/5QtohL/dEDzKqiaKRlGFJtmZOFqvep7iwF rfpM3+9kJV7MYRcivFkG0KuZOQ1IIYWcTSrMWRWVv9g3+4I0/dMajasCThaDrLPF TdOR/JIXyrzYeV7A2nxp00Pe6JuPVO5FE+JR3O03Z9H73+MoDsw3D1bsw4SRoQMj DhjGwDjUCJV8PvykOU/BS0D3PAyl13GKoickle9hWsKOzafGqKdE/OjUzQWLuB9y qR8bswk4nOP4q9bGyWZ4 =jUfs -----END PGP SIGNATURE----- --eP8xGX2lG1UwfyBj--