From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 27 Sep 2018 17:52:38 +0300 From: Jarkko Sakkinen To: Borislav Petkov CC: , , , , , , , , , , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "Konrad Rzeszutek Wilk" , David Woodhouse , David Wang , "Kirill A. Shutemov" , "Levin, Alexander (Sasha Levin)" , Jia Zhang , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "He Chen" , Luwei Kang , , Radim =?utf-8?B?S3LEjW3DocWZ?= , Piotr Luc , Paolo Bonzini Subject: Re: [PATCH v14 04/19] x86/cpufeatures: Add SGX feature bits Message-ID: <20180927145238.GA9769@linux.intel.com> References: <20180925130845.9962-1-jarkko.sakkinen@linux.intel.com> <20180925130845.9962-5-jarkko.sakkinen@linux.intel.com> <20180925164854.GF23986@zn.tnic> <20180926111139.GA12037@linux.intel.com> <20180926113617.GD5584@zn.tnic> <20180927131642.GE5436@linux.intel.com> <20180927135139.GB19687@zn.tnic> Content-Type: text/plain; charset="us-ascii" In-Reply-To: <20180927135139.GB19687@zn.tnic> Return-Path: jarkko.sakkinen@linux.intel.com MIME-Version: 1.0 List-ID: On Thu, Sep 27, 2018 at 03:51:39PM +0200, Borislav Petkov wrote: > On Thu, Sep 27, 2018 at 04:16:42PM +0300, Jarkko Sakkinen wrote: > > Still kind of leaves me puzzled about the situation :-) Why this wasn't > > used for example to replace detect_vmx_virtcap()? > > I don't understand - detect_vmx_virtcap() is setting X86_FEATURE bits > based on MSR settings. get_scattered_cpuid_leaf() is regenerating a > CPUID leaf from the scattered bits. > > Looks like apples and oranges to me... > > -- > Regards/Gruss, > Boris. > > Good mailing practices for 400: avoid top-posting and trim the reply. Ugh, sorry, I was not thinking clearly :-) /Jarkko