Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp637060imm; Wed, 26 Sep 2018 04:36:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV60r8RG397FueB+x5KPuEKbJjxLhXyp6L/+Z62mDR09osy4T5auVHaxUz+FMOpNsvT7B3KfE X-Received: by 2002:a62:2459:: with SMTP id r86-v6mr5911686pfj.31.1537961809512; Wed, 26 Sep 2018 04:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537961809; cv=none; d=google.com; s=arc-20160816; b=FqwPmK4uL7r/h/4CqD+dtPbNpSaiy6zS4HM/w50zfZG4dsGZ8NKcsyqbF0qrUp0yTW OD4ifmBRsrqr1BAPGLh2Kcz9Oknr2oXspK4Tm23ZJT4+hB2Pt4wESijj4U2kJ4M5NAFk K+gDV0BotZcmxDhgp0nMKV2KP8MzqoNf+BL4RUWVMMy2Ngp/3NwdqA/erIhgCf1OMzoE 9zyks1gfqVRRF1cLSA2b7G5p+X9l6GaCBICo23EFTYQ6vfbEAJjHnG+jh3l2diFJMf0f zaMN6L2C9vlTCvtyq1mxFJoeQ5T+6g/VTNZby0HJPpZBn7w8Xz9ZewvoB//rGKt8udyu oOVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5tH8lGEjhxdNjFLofQxVaf7z+tdGhQtT9SJ4E0ftIJI=; b=t+Zgjnb0ZM2QL3rrcHglrgu+1SxasI49zf8yoGB/sQyLGWf7f0twzdUCfdWlnELYCD TwR1+kkFxLD3nCGOjChsaIAqfz0VijFqALeb+WT6ISsMDUS2hRfJCKOaMcya/VqxJaN1 rf0+l84OYMG0ZyiCkHdvh+8z5GyKpcryGIsx3YR70k2+j1cSZmpj7WevriHs3d8e50nF pgGv+xF8dQ6dQf1biHOnzUed/h2NYQl6EQ6a2pqeOnaTOcwrcCemJJxhDXsSbtSIGJ/H zY16J7NL1/HpMchn3/D45HvWSy9naf5+43dqfnOkmixFT0fxRNIy/NmdHVX0cVxaMyRF zyHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24-v6si5053877pls.211.2018.09.26.04.36.34; Wed, 26 Sep 2018 04:36:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728093AbeIZRso (ORCPT + 99 others); Wed, 26 Sep 2018 13:48:44 -0400 Received: from mail.skyhub.de ([5.9.137.197]:49164 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbeIZRso (ORCPT ); Wed, 26 Sep 2018 13:48:44 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jCKH_iKQPgvF; Wed, 26 Sep 2018 13:36:09 +0200 (CEST) Received: from zn.tnic (p200300EC2BCA1F00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bca:1f00:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3D0741EC01FA; Wed, 26 Sep 2018 13:36:09 +0200 (CEST) Date: Wed, 26 Sep 2018 13:36:17 +0200 From: Borislav Petkov To: Jarkko Sakkinen Cc: x86@kernel.org, platform-driver-x86@vger.kernel.org, dave.hansen@intel.com, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, serge.ayoun@intel.com, shay.katz-zamir@intel.com, linux-sgx@vger.kernel.org, andriy.shevchenko@linux.intel.com, 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 , kvm@vger.kernel.org, Radim =?utf-8?B?S3LEjW3DocWZ?= , Piotr Luc , Paolo Bonzini Subject: Re: [PATCH v14 04/19] x86/cpufeatures: Add SGX feature bits Message-ID: <20180926113617.GD5584@zn.tnic> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180926111139.GA12037@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 26, 2018 at 02:11:39PM +0300, Jarkko Sakkinen wrote: > Thank you. I guess I understand what you want me to do i.e. > > + { X86_FEATURE_SGX1, CPUID_EAX, 0, 0x00000012, 0 }, > + { X86_FEATURE_SGX2, CPUID_EAX, 1, 0x00000012, 0 }, > + { X86_FEATURE_ENCLV, CPUID_EAX, 5, 0x00000012, 0 }, > + { X86_FEATURE_ENCLS_C, CPUID_EAX, 6, 0x00000012, 0 }, Yap. > What puzzles me is that I cannot find any call site for > get_scattered_cpuid_leaf(): > > $ git grep get_scattered > arch/x86/kernel/cpu/cpu.h:extern u32 get_scattered_cpuid_leaf(unsigned int level, > arch/x86/kernel/cpu/scattered.c:u32 get_scattered_cpuid_leaf(unsigned int level, unsigned int sub_leaf, > arch/x86/kernel/cpu/scattered.c:EXPORT_SYMBOL_GPL(get_scattered_cpuid_leaf); That used to be used in kvm last, see b7b27aa011a1df42728d1768fc181d9ce69e6911, which removed it. And it got added by 47bdf3378d62 ("x86/cpuid: Provide get_scattered_cpuid_leaf()") Lemme add those people to CC. If no one wants it, feel free to decomission it. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.