Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp869987pxm; Thu, 3 Mar 2022 06:13:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwqYuw5J9e9XU27FoodmdDqWFRJMCjqbzkLnhJbwzS1yr1UAjH+QMY/jaF5mjH/lJCKo7w X-Received: by 2002:a05:6a00:189e:b0:4f6:5d32:dc9a with SMTP id x30-20020a056a00189e00b004f65d32dc9amr6602621pfh.28.1646316813549; Thu, 03 Mar 2022 06:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646316813; cv=none; d=google.com; s=arc-20160816; b=A5IxFPkYm1cyI+SgUmmooT3AWVND7p1EgLAXGv0wwFWH98btaZgCbt2/cYiNNa9L6y LOeW31c5maY+qq6tn1WlshEirPrjOIWsdRaTC4bVjNid3m/3mOplYxJ4Qt2b+dT5eNHM mbUa4yaU+y+vNQoDVYHN0qp6bvusgIlajzZqkD0yaU0vXApbGnbwPtm3Ju9ebTCslL5L 1gX/pJG3L8F36iOeo2J4xsFMDGt6Dv0lkGEOZ0AzTAWwtoxDv9Yjthpy+ClOkGUjfMea cFK0FgQaQX8B90FYjDy3C8+R+zWgyFqEk34rJWmArtdWgs/kEq/aQyE3M8Mrf5KxD8i7 XgfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jQl+UO9M5qJFMB1tYcWWczr9VdoUTo47g2edGFjqR+o=; b=WUzkOMBt/KyhDGiLrBfjIzhCk4F7Y5kTI+jcZSAPAMH7hAi88pBHDbWPXcRK96+7r3 9ag56VHGYmpVDnrO2OdQKV3gWss3HW/raI/26xtkrec2gM2yonVkA3pO5o09/Xy/ceTz Tetv1flB/B5vKFN4NvevXn5rWoYVrR/dKuVRzhykk4KZs5yoISBbcZhIKyRwdD2S0Nsi ZGz/+iHF0cueckM0r/7g85cpkSgm0gTMVIXdCgo8Fm3rLbhNnQK0I3bIblY4lwfI170D L1SASCxoJvlkitKPzVjuuxyaOshQs7GL0xbWtVU8R7/+w3tOvG0TiLD1IUveBG+z23ny 2v7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LPMPaQdr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 126-20020a620684000000b004e0db114e7bsi2076133pfg.67.2022.03.03.06.13.14; Thu, 03 Mar 2022 06:13:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LPMPaQdr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232234AbiCCKVO (ORCPT + 99 others); Thu, 3 Mar 2022 05:21:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbiCCKVK (ORCPT ); Thu, 3 Mar 2022 05:21:10 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 501BA488A3; Thu, 3 Mar 2022 02:20:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646302825; x=1677838825; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4Otr+JQyp8IM/RF61Ihr+OMf6poonNq4fmWZEgecv5k=; b=LPMPaQdr1+yzrSUw4rffpZKeVM0rWNGfjdLkNBgTB3h70AUqOlogRbFJ BZexuWWeOUQh7udIFu9uE3VU/DvTXklgPVi7Teogt2BC+fqnM6rXicQw4 /e6RQW7YO18pQiroWdpBAI2nXq5M0yK6EXpASk4zSwEjpzriBZ5rYrgs8 rjIImx/t1lVvzZRb1ofxYI04N296Bsgo0R+UcNhI5mWZnsNAngudz/XNg dV8T2wmjEX6Pw8MrUbkLDJb2lpNsRSas3nEg6H4l1Uy4z7+aflyWgdGlz etNoLCo3g+4x5h5oZ/qv6NOFqRs2PU7Tq+szGkw6ye0w3R4mxyvexzKeF Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="234250005" X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="234250005" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 02:20:25 -0800 X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="551694758" Received: from smile.fi.intel.com ([10.237.72.59]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 02:20:21 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nPiYY-00Ajk2-Cp; Thu, 03 Mar 2022 12:19:34 +0200 Date: Thu, 3 Mar 2022 12:19:33 +0200 From: Andy Shevchenko To: Yury Norov Cc: Michael Mueller , Claudio Imbrenda , Christian Borntraeger , kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Janosch Frank , David Hildenbrand , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle Subject: Re: [PATCH v1 1/1] KVM: s390: Don't cast parameter in bit operations Message-ID: References: <20220223164420.45344-1-andriy.shevchenko@linux.intel.com> <20220224123620.57fd6c8b@p-imbrenda> <3640a910-60fe-0935-4dfc-55bb65a75ce5@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 02, 2022 at 10:43:54AM -0800, Yury Norov wrote: > On Wed, Mar 02, 2022 at 07:31:58PM +0200, Andy Shevchenko wrote: > > On Wed, Mar 02, 2022 at 09:18:35AM -0800, Yury Norov wrote: > > > On Wed, Mar 02, 2022 at 05:44:03PM +0200, Andy Shevchenko wrote: > > > > On Thu, Feb 24, 2022 at 01:10:34PM +0100, Michael Mueller wrote: > > > > > On 24.02.22 12:36, Claudio Imbrenda wrote: > > > > > > > > ... > > > > > > > > > we do that at several places > > > > > > > > Thanks for pointing out. > > > > > > > > > arch/s390/kernel/processor.c: for_each_set_bit_inv(bit, (long > > > > > *)&stfle_fac_list, MAX_FACILITY_BIT) > > > > > > > > This one requires a separate change, not related to this patch. > > > > > > > > > arch/s390/kvm/interrupt.c: set_bit_inv(IPM_BIT_OFFSET + gisc, (unsigned long > > > > > *) gisa); > > > > > > > > This is done in the patch. Not sure how it appears in your list. > > > > > > > > > arch/s390/kvm/kvm-s390.c: set_bit_inv(vcpu->vcpu_id, (unsigned long *) > > > > > sca->mcn); > > > > > arch/s390/kvm/kvm-s390.c: set_bit_inv(vcpu->vcpu_id, (unsigned long *) > > > > > &sca->mcn); > > > > > > > > These two should be fixed in a separate change. > > > > > > > > Also this kind of stuff: > > > > > > > > bitmap_copy(kvm->arch.cpu_feat, (unsigned long *) data.feat, > > > > KVM_S390_VM_CPU_FEAT_NR_BITS); > > > > > > > > might require a new API like > > > > > > > > bitmap_from_u64_array() > > > > bitmap_to_u64_array() > > > > > > > > Yury? > > > > > > If BE32 is still the case then yes. > > > > The whole point is to get rid of the bad pattern, while it may still work > > in the particular case. > > Then yes unconditionally. Is it already on table of s390 folks? If no, > I can do it myself. > > We have bitmap_from_arr32 and bitmap_to_arr32, so for 64-bit versions, > we'd start from that. Yep, thanks! -- With Best Regards, Andy Shevchenko