From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [PATCH v3 18/33] KVM: PPC: Book3S HV: Nested guest entry via hypercall Date: Wed, 3 Oct 2018 15:12:10 +1000 Message-ID: <20181003051210.GN1886@umbus.fritz.box> References: <1538479892-14835-1-git-send-email-paulus@ozlabs.org> <1538479892-14835-19-git-send-email-paulus@ozlabs.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FX+Db2fp7WJhXKrW" Cc: linuxppc-dev@ozlabs.org, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org To: Paul Mackerras Return-path: Content-Disposition: inline In-Reply-To: <1538479892-14835-19-git-send-email-paulus@ozlabs.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" List-Id: kvm.vger.kernel.org --FX+Db2fp7WJhXKrW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 02, 2018 at 09:31:17PM +1000, Paul Mackerras wrote: > This adds a new hypercall, H_ENTER_NESTED, which is used by a nested > hypervisor to enter one of its nested guests. The hypercall supplies > register values in two structs. Those values are copied by the level 0 > (L0) hypervisor (the one which is running in hypervisor mode) into the > vcpu struct of the L1 guest, and then the guest is run until an > interrupt or error occurs which needs to be reported to L1 via the > hypercall return value. >=20 > Currently this assumes that the L0 and L1 hypervisors are the same > endianness, and the structs passed as arguments are in native > endianness. If they are of different endianness, the version number > check will fail and the hcall will be rejected. >=20 > Nested hypervisors do not support indep_threads_mode=3DN, so this adds > code to print a warning message if the administrator has set > indep_threads_mode=3DN, and treat it as Y. >=20 > Signed-off-by: Paul Mackerras Reviewed-by: David Gibson --=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 --FX+Db2fp7WJhXKrW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAlu0T6oACgkQbDjKyiDZ s5KWCxAAg3nBsdyPbcGuXFYcpIk1DERAKEhqEqccj2qL8VHfbSBN9RibHiqgip5b 759Iat6RunL7HtmoOcA0Yi3rp2P/oaIffPgKouzWoVvjEG9qT4ofyMFVSB6tmPnj S3j1NjjEp+cGAZK5Jp6ZJypy0oiMgz+lHFHkDvXBPuYeG0YLucikY56J1cRpAZkp 5JFLoOcttFproii9m3Y13hAkazUzYF/1v76f4LzghyTiLX/vjHpnfr5qfG8LIqTa gr26rG8SW/HEbkrigwnHB00tjLgfWVHuM/8lxGiGaCrdEbN3uXHmiP+2u7ukoPLW HB8i7Ro6WtZfV9gBdvvO1PxX0B9RTwRaDH/uKnU2tnJh10TRkYLrHewQMVWqhK92 MPbQW3Mx2nBj3Ep7aqaaViR4eMghMyOPG3jX7AbjSE5dMtmjZ61/RhAfci7DFAsf cg5dIiHhWCRDzq9LfKAbMJZR1PvZbaGcuu5OWOalWoPAGJK8MabNLt9y4BADIIDh 19BONd90HDXJ1ACOgaMgHTjn+jICa9yuGo3Br1y7jTST62QQAf8FYHLIF3ir4pVv /cZVI3fJALWcJ8emcReHdg7XWU8NePXohSHsLW3qA26ZqyBGO0pru0wmkw0B791I L+eEu3j9mjsytoCKAdMxdIR/YV9uMYsqH09DMr4QO5dMrXgb9N8= =Ni9Z -----END PGP SIGNATURE----- --FX+Db2fp7WJhXKrW--