Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1216036imm; Wed, 17 Oct 2018 15:40:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV600i8mDSAALxVVwbbztCUJvW/NYBFLiTQ/zsu+lWdw8m+qGfGAi2vf6Cj6llEnxEz+FkMvm X-Received: by 2002:a62:c60a:: with SMTP id m10-v6mr28413462pfg.15.1539816036881; Wed, 17 Oct 2018 15:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539816036; cv=none; d=google.com; s=arc-20160816; b=wu1v9rmuBXBYh2rx9DfJdqZwQ27eV6DZVXLIuBHu4kQSJokwHRBI+1+xovT9JXiVSw x1kQDgkyF/MS8okxSdUrh1BUDhvIrHguAw/3pnbMuwS+lOdOdz8h6bzDP7TKnKayofvh nnoQ1kHMNKzvkMdLOxCtTPknO/dtczrXlQqTY3J5by9Xx8csNOJCQHXYUM/7JkoG785b 4CA/KYa1i+kdoSjJXtVzv8Te9dMxJGauZIE8UgAYaJSbtu3xTOms+LnIUqcX9pSwxZb0 CEzlypGOUvAG+SSm8wCalSvm6uNiK7hWcQ5yO6+6fhHUznZMVGcCkASdr2DNlwmFI48W YSVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=BwoZ3WcDYWO+yjIugTPr7sNhogD+F87PcyQx2HZ+CEE=; b=Ktr2U5tc1/JJfxTNM3NRTd/L668VtOkJ4NM+Fk8qNvrEUGcjGW3kIhdSyBhBnvCxIZ 0niEVad0RGxhbiZ+RPfCW/EcsuIH/cwX72PIXdMEBKgHoT5YpvWOiNINjaYX6nnPvAsZ gktnGQ8jGmuIW8ngN6piwilIn4mZgmzckFJIqaaDMtYjZiQYIIUI7bKVRzgnLYc0tUMt +vomLLjFHoLmZ0+ykJLlnDnxg070a+hmxn2qKHJsx2Xw9p7cqL1SJACKE+QUGglfiGoR IjKCEuyKWeDC2YKfa6rXtlrpT75Ck5SVodb92LanD1hSkRIrCk8p9Sxy+DbeNHoxi9PP se+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XNiTasvj; 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 b4-v6si19481151pfg.90.2018.10.17.15.40.20; Wed, 17 Oct 2018 15:40:36 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XNiTasvj; 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 S1727538AbeJRGhs (ORCPT + 99 others); Thu, 18 Oct 2018 02:37:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60370 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727188AbeJRGhs (ORCPT ); Thu, 18 Oct 2018 02:37:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BwoZ3WcDYWO+yjIugTPr7sNhogD+F87PcyQx2HZ+CEE=; b=XNiTasvjUqxcUKVyKvrs7Tn7M P/okGbwZe6l2a2/avbd6hbeACXL3UNOXfuqlTiGwbMj1coP7CodqEBx2nyDTHQHVjgm3yIqNKnU0T hfP9jgNgIKdxkrUQw/6wsYfym9EUaFj+73rL1G1TPJh+/uJYcGx7+uLloCM9f4JBKj1jYJu74IlL6 fchsKREhN7In+1cuheh0VWKoRHQWxktJTSVtpZ64gQ8GyCBH0eEp2geF51DnM0BBCYbX44h7USySx qb/954R/wiv9ffAU7RilAgJsWnthxB/HTzepMntJJNSPunxDHNujAOUmQ6qtWUtYxsgaK4fCmwLW3 k2xth4JuQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCuTn-00041p-Oy; Wed, 17 Oct 2018 22:39:51 +0000 Subject: Re: [PATCH v5 03/27] x86/fpu/xstate: Introduce XSAVES system states To: Borislav Petkov , Yu-cheng Yu Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , "Ravi V. Shankar" , Vedvyas Shanbhogue References: <20181011151523.27101-1-yu-cheng.yu@intel.com> <20181011151523.27101-4-yu-cheng.yu@intel.com> <20181017104137.GE22535@zn.tnic> From: Randy Dunlap Message-ID: <32da559b-7958-60db-e328-f0eb316e668e@infradead.org> Date: Wed, 17 Oct 2018 15:39:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181017104137.GE22535@zn.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/17/18 3:41 AM, Borislav Petkov wrote: >> @@ -702,6 +703,7 @@ static int init_xstate_size(void) >> */ >> static void fpu__init_disable_system_xstate(void) >> { >> + xfeatures_mask_all = 0; >> xfeatures_mask_user = 0; >> cr4_clear_bits(X86_CR4_OSXSAVE); >> fpu__xstate_clear_all_cpu_caps(); >> @@ -717,6 +719,8 @@ void __init fpu__init_system_xstate(void) >> static int on_boot_cpu __initdata = 1; >> int err; >> int i; >> + u64 cpu_user_xfeatures_mask; >> + u64 cpu_system_xfeatures_mask; > > Please sort function local variables declaration in a reverse christmas > tree order: > > longest_variable_name; > shorter_var_name; > even_shorter; > i; Hi, Would you mind explaining this request? (requirement?) Other than to say that it is the preference of some maintainers, please say Why it is preferred. and since the s above won't typically be the same length, it's not for variable name alignment, right? thanks, -- ~Randy