Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2428797imb; Mon, 4 Mar 2019 05:05:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyH0HZ+RIBQl1qcr2ln1p0XjemNz2v4Rhe0s5MpKhMW6/br5GBvyEH85wde05/AyC+oZEft X-Received: by 2002:a17:902:ba8c:: with SMTP id k12mr20540817pls.193.1551704733235; Mon, 04 Mar 2019 05:05:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551704733; cv=none; d=google.com; s=arc-20160816; b=wGOTmXsdO0Nspnc/rTTi03XHGmvc6lg7d9dTHW5lPhHrpSsrjQn4uJYX4Jh9Qrvj6P jswCl6XPZ8eoPhL4RZzLm6n7q5BbJ0TukAiOhK/CEOH2SZ748s7FhJusaHfF6aPdn7fw 4tPMr7XsntZokrLizu1IlSiQN9iymekKDN3dvvq4T8JWfAFLMLQmTVxbEzkaS46MGv1y 897S2yvYHI4hNHUceuNMbbTkrnDH2Cy+sxYxWO3X7WlHKWg6gMM6zUwWZgTalGsym2vX zbMKaNebvkdAa8ktF3ZbHi942YfVdLPn3UDOvMZCl1rNAouOZAQcg0qGYyeD1xtd2P4G vaHQ== 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:dkim-signature; bh=dHofGZIDuuCTbB2DhNnvh5fldYsZAwGdXhdWGYPot98=; b=PzLYj5eRnBYALJzJxvv+tYX9bHhAQlHsPBRwITEtbyGE/6jjorVNBI29IiIZXRUZWi d0APKFdLG0LuuevID+62TDBNf8g1wYXoWGQMUQDOXXBW1qChYjHIaC9NmSF/p6WJuOTE CzKRwk0LXFqDMtBizMjXH6iRD8EdzR5X1CSoqGkDcXiCK87Q65IyfFmwxdb/kpZEZ9wy 3BlTI7nO0tn25orUPuo1nCZmsQAfJ8+mMMahmypy7EZbs5U1tJ4F5g0KRqp/2INiGLq9 AzOAImAZmUk3m2QkEUcCPjd8GVvGoMCPUdZpslZa3gfK+X3B+wSc21dh8Py8rPvmI+Xc dDCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=PW3JHgEc; 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 f40si5385414plb.339.2019.03.04.05.05.17; Mon, 04 Mar 2019 05:05:33 -0800 (PST) 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=merlin.20170209 header.b=PW3JHgEc; 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 S1726623AbfCDMok (ORCPT + 99 others); Mon, 4 Mar 2019 07:44:40 -0500 Received: from merlin.infradead.org ([205.233.59.134]:43990 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbfCDMoj (ORCPT ); Mon, 4 Mar 2019 07:44:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=dHofGZIDuuCTbB2DhNnvh5fldYsZAwGdXhdWGYPot98=; b=PW3JHgEcH1eOD07jpvH37I4TB HBWNgvyZ8TZr1NkrvHWrC5UZ00rzWMFmeFWIXhj5XMOQXMvjuaVsUR/4yrjAIBSAAVnS4jvemUYSJ NEZ7oIW1C7RbkZWGSDDO7goAzaPkM+0NbPbmjpdWLNliC/T0HN7Ucvvn25JFUM2FFnMq4Je3Q9j3Z 4oTT6sgND1cuftPZB5ySTw8jbQQ32kgQH1Vuc76K44MGRGgZeui00RCVHqY+owZt3SzHitHtye9Of SXzgabJE9RuB5lVJQk1CIMnLp8/VjG7DLh72Wdif57jsKzVEiNiebrGGZR1I5PXI6lx8u1lFOvP30 3XK3FCAgA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0mxO-0004Me-DE; Mon, 04 Mar 2019 12:44:34 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2D55820295395; Mon, 4 Mar 2019 13:44:33 +0100 (CET) Date: Mon, 4 Mar 2019 13:44:33 +0100 From: Peter Zijlstra To: Paolo Bonzini Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Dave Hansen , Ashok Raj , Ravi V Shankar , Xiaoyao Li , linux-kernel , x86 , kvm@vger.kernel.org Subject: Re: [PATCH v4 01/17] x86/common: Align cpu_caps_cleared and cpu_caps_set to unsigned long Message-ID: <20190304124433.GE32477@hirez.programming.kicks-ass.net> References: <1551494711-213533-1-git-send-email-fenghua.yu@intel.com> <1551494711-213533-2-git-send-email-fenghua.yu@intel.com> <461f162c-694f-2bb7-f9cb-55fa915434bc@redhat.com> <20190304101736.GC32477@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Mar 04, 2019 at 11:48:18AM +0100, Paolo Bonzini wrote: > True that. On the other hand btsl/btrl is also one byte smaller if no > operand is %r8-%r15. Because then we loose the REX prefix, right. Now _that_ might actually be a reason to do that :-) > In any case, /me wonders if we should have a macro like > > #define DECLARE_LE_BITMAP(name,bits) \ > u32 name[DIV_ROUND_UP(bits, 32)] __aligned(sizeof(unsigned long)) s/u32/__le32/ To go in bitops/le.h, sure, if there's enough users.