Return-path: Received: from aserp2120.oracle.com ([141.146.126.78]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fIwn3-0005eA-5U for speck@linutronix.de; Wed, 16 May 2018 15:48:25 +0200 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4GDlflc055711 for ; Wed, 16 May 2018 13:48:17 GMT Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2hx29w4wnx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 16 May 2018 13:48:17 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4GDmGGH013515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 16 May 2018 13:48:16 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w4GDmFJ7017378 for ; Wed, 16 May 2018 13:48:16 GMT Date: Wed, 16 May 2018 09:48:15 -0400 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [patch 08/15] Hidden 8 Message-ID: <20180516134815.GB29202@char.us.oracle.com> References: <20180513140048.543641807@linutronix.de> <20180513140538.883795088@linutronix.de> <20180516033111.GI18660@char.us.oracle.com> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Wed, May 16, 2018 at 02:22:45PM +0200, speck for Thomas Gleixner wrote: > On Tue, 15 May 2018, speck for Konrad Rzeszutek Wilk wrote: > > On Sun, May 13, 2018 at 04:00:56PM +0200, speck for Thomas Gleixner wrote: > > > /* Thermal and Power Management Leaf, CPUID level 0x00000006 (EAX), word 14 */ > > > #define X86_FEATURE_DTHERM (14*32+ 0) /* Digital Thermal Sensor */ > > > --- a/arch/x86/include/asm/msr-index.h > > > +++ b/arch/x86/include/asm/msr-index.h > > > @@ -347,6 +347,8 @@ > > > #define MSR_AMD64_SEV_ENABLED_BIT 0 > > > #define MSR_AMD64_SEV_ENABLED BIT_ULL(MSR_AMD64_SEV_ENABLED_BIT) > > > > > > +#define MSR_AMD64_VIRT_SPEC_CTRL 0xc001011f > > > > /me scratches his head. this looks off, but it is probably my editor. > > What looks off? It looks like it has spaces instead of tabs. > > > > } > > > #endif > > > > > > +static __always_inline void amd_set_ssb_virt_state(unsigned long tifn) > > > > s/amd_// ? > > I really think this is AMD specific to deal with the fact that the SSBD bit > in LS_CFG MSR is on different bit positions depending on the CPU family. > which is a pain for guest migration accross host systems with different CPU > families. > > Intel does not have that and they shall burn Inhell if they start to > implement that. > > Let's not try to generalize stuff which should not exist in the first place. > > Thanks, > > tglx