From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Habkost Subject: Re: [PATCH 1/2] i386: define the AMD 'amd-ssbd' CPUID feature bit Date: Wed, 13 Jun 2018 13:56:20 -0300 Message-ID: <20180613165620.GY7451@localhost.localdomain> References: <20180601145921.9500-1-konrad.wilk@oracle.com> <20180601153809.15259-1-konrad.wilk@oracle.com> <20180601153809.15259-2-konrad.wilk@oracle.com> <20180604200701.GB3184@localhost.localdomain> <20180604202205.GH5867@char.us.oracle.com> <20180613101949.GL27901@redhat.com> <20180613160959.GF11438@char.us.oracle.com> <20180613162129.GI19901@redhat.com> <20180613163421.GB21340@char.us.oracle.com> <20180613163950.GK19901@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: pbonzini@redhat.com, rth@twiddle.net, qemu-devel@nongnu.org, kvm@vger.kernel.org, Konrad Rzeszutek Wilk To: Daniel =?iso-8859-1?Q?P=2E_Berrang=E9?= Return-path: Content-Disposition: inline In-Reply-To: <20180613163950.GK19901@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel2=m.gmane.org@nongnu.org Sender: "Qemu-devel" List-Id: kvm.vger.kernel.org On Wed, Jun 13, 2018 at 05:39:50PM +0100, Daniel P. Berrang=E9 wrote: [...] > > The code that finds the AMD_SSBD and sets the 'ssbd' is: > >=20 > > + if (cpu_has(c, X86_FEATURE_AMD_SSBD)) { > > + set_cpu_cap(c, X86_FEATURE_SSBD); > > + set_cpu_cap(c, X86_FEATURE_MSR_SPEC_CTRL); > > + clear_cpu_cap(c, X86_FEATURE_VIRT_SSBD); > > + } > >=20 > > Meaning the 'ssbd' will show up in /proc/cpuinfo >=20 > Given that, there's no exposed kernel naming we need to align with. >=20 > So personally I'd be fine with the current patches that exist, but > I'll defer to Eduardo for the final say, wrt amd-ssb-no vs amd-no-ssb. I prefer amd-no-ssb, so I plan to apply these patches as is. --=20 Eduardo