Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp296306pxm; Wed, 2 Mar 2022 15:43:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwC5S4UobuzOGuH/8q5a3O6nhAAHnn0bYbQ10iwPCpy6XOP0GEkPxB6Hggx5lv8F/8dMPz X-Received: by 2002:a17:902:ec8e:b0:151:8de7:a078 with SMTP id x14-20020a170902ec8e00b001518de7a078mr8068044plg.77.1646264615693; Wed, 02 Mar 2022 15:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646264615; cv=none; d=google.com; s=arc-20160816; b=to0gO9w9BrJFlzhJfrVfqdYvQCi3MznM0g+n6RHqE7i/AMeybmtdYAkBTyCSHZmzSV DmRlAdmlrC0TE3pSGXDNdeIC1yma4pubkoECK0vRl+VODgm6zRCnZOlJ0ZQi/pxYsNzW 1oiLWGces9EcJXyhVCFw1jzRqxHdZ1qcMipq401fdgEEipcGNswC0QTCNCXU/9yn+tBw EOX01Z2Qgah/3W6AYGpOuSU1JY2v4bDz2Hh3mG0wvj8hM6uAPfiJy9xQmmvbpD+iPOul p9jv4Y6rMuAmZgi63fMB9ktT02aMpT7DAjjv08eL3drfsr0snS/vbm3TjoO9JAKNdjrO ccIA== 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=bANFIcYC4P9Gd4ImDN+npAKC0Eg3mudClheciTwngbo=; b=rvz0X9yP+Tf4R3BEJ5i+J7410mTxtONK6AppqmuF0ndcxADs09udyVXf2XBHpmgW6m E4Z3GksLzYcoHo3BEIzdfZl8dp65D7BkAEQc9BKB5tSTvd5Gc8CMvN55XZYGvsnTdUXm 6FW1AnW8mBHdPsui+9VkUXar9EvYrdwOihj74O5H/kwmJOtmCmoV5qI4vQ4cmmBkyCf+ EAIScXNIdtwcB2mZNPXGnHXqHYx34xzBpXnGur/sSWy/4EJE0qDyJyazxW6KGKJtyYTQ kfR+8Yx6dbBrwyHS/nxyIcu9vNBeAM2kgbZd8/VlByEMgDnCumiJI1V8ARKtYWqzV8wS C+LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d0VjIZKK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u11-20020a170903124b00b0014f177bc521si447952plh.543.2022.03.02.15.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:43:35 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d0VjIZKK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B4953F308; Wed, 2 Mar 2022 15:08:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240113AbiCBPq2 (ORCPT + 99 others); Wed, 2 Mar 2022 10:46:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239848AbiCBPq0 (ORCPT ); Wed, 2 Mar 2022 10:46:26 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24035C3C26; Wed, 2 Mar 2022 07:45:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646235943; x=1677771943; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=exnosfsPOuG3dgKZRtkihqr1VgZvGXrCKlv7W+iMAqc=; b=d0VjIZKKsmefK9UoWEFsedJ3nZj3t6V/rpgl/EeUvRuAPYvBFMNEkbkI 9tm5OMpgy6OYvGbb9v1QE2TTJDcGKKn1ScKU8HYjfAQ+HRCnW9cFyUWEC iFq1KrxcLpywUt5CP9PSmDWoEgqBJhX2tbkmqCaaHAg1V3qZe6p+5T6dv nbO1tLJ6PTgz3n/Qm6yanyyHuIWIEYVLJsqlMyTu2eWh/yk6IpBopHzqC kI0968pTTpSPAswkx3PUmj/V7ih9LqS/xML6gQ8QLOoX6cBJPhNi+h+nI FFmRv4W4ch1CGEplnVOKKuJwgZyXsI7PhgUdQ1tcbh/B/TpWqSTtmLb4R g==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="252259482" X-IronPort-AV: E=Sophos;i="5.90,149,1643702400"; d="scan'208";a="252259482" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 07:44:54 -0800 X-IronPort-AV: E=Sophos;i="5.90,149,1643702400"; d="scan'208";a="576145777" Received: from smile.fi.intel.com ([10.237.72.59]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 07:44:50 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nPR91-00AMij-Ss; Wed, 02 Mar 2022 17:44:03 +0200 Date: Wed, 2 Mar 2022 17:44:03 +0200 From: Andy Shevchenko To: Michael Mueller , Yury Norov Cc: 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: <3640a910-60fe-0935-4dfc-55bb65a75ce5@linux.ibm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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? -- With Best Regards, Andy Shevchenko