From: Greg Kurz Date: Wed, 04 Mar 2020 08:34:44 +0000 Subject: Re: [EXTERNAL] Re: [RFC PATCH v1] powerpc/prom_init: disable XIVE in Secure VM. Message-Id: <20200304093444.5e524ef6@bahia.home> List-Id: References: <1582962844-26333-1-git-send-email-linuxram@us.ibm.com> <20200302233240.GB35885@umbus.fritz.box> <8f0c3d41-d1f9-7e6d-276b-b95238715979@fr.ibm.com> <20200303170205.GA5416@oc0525413822.ibm.com> <20200303184520.632be270@bahia.home> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: =?UTF-8?B?Q8OpZHJpYw==?= Le Goater Cc: aik@ozlabs.ru, andmike@linux.ibm.com, Ram Pai , kvm-ppc@vger.kernel.org, sukadev@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, bauerman@linux.ibm.com, David Gibson On Tue, 3 Mar 2020 20:18:18 +0100 C=C3=A9dric Le Goater wrote: > >> **** BTW: I figured, I dont need this intermin patch to disable xive f= or > >> secure VM. Just doing "svm=3Don xive=3Doff" on the kernel command lin= e is > >> sufficient for now. ***** > >> > >=20 > > No it is not. If the hypervisor doesn't propose XIVE (ie. ic-mode=3Dxive > > on the QEMU command line), the kernel simply ignores "xive=3Doff". >=20 Ah... sorry for the typo... "doesn't propose XICS" of course :) > If I am correct, with the option ic-mode=3Dxive, the hypervisor will=20 > propose only 'xive' in OV5 and not both 'xive' and 'xics'. But the > result is the same because xive can not be turned off and "xive=3Doff"=20 > is ignored. >=20 > Anyway, it's not the most common case of usage of the QEMU command > like. I think it's OK to use "xive=3Doff" on the kernel command line=20 > for now. >=20 Sure, I just wanted to make things clear. Like you said it's a chicken switch introduced for distro testing. I think it should not be used to do anything else. If "svm=3D1" needs to enforce supported.xive =3D false as a temporary workaround, it should do it explicitly. > C.