Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2332711imb; Mon, 4 Mar 2019 02:19:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzVho2JbbYeVfw28SlAKRG2oheswrqtzBy5pO+NNF0UD9XIJqY7R197ziN6iagDjd2qUDeg X-Received: by 2002:a17:902:6b4b:: with SMTP id g11mr19184993plt.92.1551694786565; Mon, 04 Mar 2019 02:19:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551694786; cv=none; d=google.com; s=arc-20160816; b=qDLcMsyfdqGUmbDfF1lFKkwFV3NQ/Q9QdTLcmdqLb2Mcl6f3GVjCPjzflSA+JCwEbi ZvHqLnhZ+j+s3/JbGqiHMl1b6WvgEk8LYVfzl62tbd3EzLgHaRBjjjDeJvH0NBCrirai z2n0y87cIKLUGaThrFz152UcRknEz47y4XOkwXPdN9oxlj7o2q4pptZZQO7XfH5On0vk gPRU4naux/hYucs9PpZP3BD29BQBJH3Hrudxog+1wf7Vj0V9qufPX30IdQ8UXkikwhEj 3eA6rz1WYp32lh1SrQWFPUB+ALLZ+/5abi7osDnNt8fyez53VRSOh6pMthFo1Y0C2xUy At/A== 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=C8+VILLWBTE+6LAkFGKf2oOrqII6N5gAPK1khW9Eh5g=; b=I8b+xrkkoJ3PBJbfYVhrdAr9SspCcVMZU52vtUBsfy8j3ACFwMCoDk+YQub9Tx9yLP bS3HLhTA827sn/Cec0cTEfrAMlG4RHwzT2U1sNfPhllrsitcGxkwRsh62QizMhTLIRNc FYwxS9HgBynRNMlP2XfvsOVHuouJkIsTKzjK1XyKTVWhfCxtbHHxDjOLJeyrXbhTLAq+ IoLC5CE+hC9c1s7zg9W2aDh4dpo5/jS5IG4IXfu/VuKiYjQWVUd/9JAatAMxqZW6YIio va38gGLqOTiw6P/tu+oPivqqcc8OwZrO6rQHBbOJa2ovq1d/WQCW1+ipzlQYBGLhCk+d kK5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=JT+E3cfp; 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 k3si5169307pfb.100.2019.03.04.02.19.31; Mon, 04 Mar 2019 02:19:46 -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=JT+E3cfp; 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 S1726456AbfCDKRr (ORCPT + 99 others); Mon, 4 Mar 2019 05:17:47 -0500 Received: from merlin.infradead.org ([205.233.59.134]:42526 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbfCDKRp (ORCPT ); Mon, 4 Mar 2019 05:17:45 -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=C8+VILLWBTE+6LAkFGKf2oOrqII6N5gAPK1khW9Eh5g=; b=JT+E3cfpo/1ZS79RB2d/ur+em kozZsSicUrusNy3pAyhpsvbUwFEzZUVb1dK2/uDwBrrvTeJxBx0OeQ7wsSbtFyV4pR2nEsFAfJtPR +k9ls9PEpgavbvRAcPnOXZLaV/IodEdDpddWi6Tx5QfRxvFNILjtosNsNhSkVu2yM7QWrhgE09sqL r+By0P9HuC8WHE3ck8qaVmqA6vawS+MQedhxQTgnJy4upu86du10yfDu8w5DdN4nNRaMx7w8DBK/i VqdLdHoQ7dqeom+64toWjDTA6pbpTy4dvOZlLY4Pwaq61wTWKjHHfLGTIIXuEAmGGNKlONjFm6srl WycbOpCpQ==; 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 1h0kfB-0003e8-Sl; Mon, 04 Mar 2019 10:17:38 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A509620295AAE; Mon, 4 Mar 2019 11:17:36 +0100 (CET) Date: Mon, 4 Mar 2019 11:17:36 +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: <20190304101736.GC32477@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <461f162c-694f-2bb7-f9cb-55fa915434bc@redhat.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 Mon, Mar 04, 2019 at 09:33:16AM +0100, Paolo Bonzini wrote: > Why not instead change set_bit/clear_bit to use btsl/btrl instead of > btsq/btrq? At least one of the faulty users (wireless) is in generic code and needs fixing regardless. For better or worse; the bitmap stuff is defined to work on unsigned long. Using it on smaller types already relies on small endian; but further enabling just makes it worse I feel. Better have the rules be uniform.