Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp258019pxm; Wed, 2 Mar 2022 14:47:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSAlwI6Sevc0fF2Wz+m8eTLdYo11o14GE7mgML9XHYxSKJrsu1jYRRrREK68w1Dz1KO23s X-Received: by 2002:a63:4d8:0:b0:373:cf6d:40e3 with SMTP id 207-20020a6304d8000000b00373cf6d40e3mr27881850pge.590.1646261221676; Wed, 02 Mar 2022 14:47:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646261221; cv=none; d=google.com; s=arc-20160816; b=H5lxaPt+Uv71CEvtXX3mKTPPDKNga2oWAWTSMBFlAZ/JDOBJY+W+rxqIwifjn6/ZIj cqppGB+LG6I7s4mm8TGMJGwvTbV0QkKkgR5sH19AQ97XmDOFkaM86ozUMB1R+K+5FEag 8EeLJ46omY3I3Q6BKYPUwnNA/l3VKzQHRsm3X0maAbvgOpaAStYJGUCHA1XMuzPSndFW 4I9/62fYlA48EVExadUuCwgP524mwf3VKM92DT5VvuhMEwjMXqd14xgJClXG0Evtr68A rdCRlhVKAyN19oycpWdygWssYkAVujx9f1NZ7sOEtzEKXQG3btJGzQ4eEZwEFnyRRBxR AmDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cwLG9kTnhX2GqkeQf8KU8q/jw+pGFKDaUnw1ajiL6WA=; b=PxBY0SNNc9o9FLEC+NY6y7ajdCVInxTNutvySaHhLCg8VIqhrdIz40VGZ8RvX+DnmC 7ZftNRlQCa/1DAfefrT8k+pwoxurjxswVoAoSxna7e8fyiPflOmr4vrgKv8+KTTTf3QU L2VCbajUM5mNcgTV1AgixGM51K92HGqPc8Q7ROgN4SgOnYk72p8+xas7SfIvaopTOnaP vitNrc1RfYH+FH/rm9qgIyJeyGlYyuMkBZSn4RJDHPj0EePnW8ZuXhd8okCWykCYKDFF ko20eEobZB9/Bzx5yNS/nvGhpcslJATR/fPfCjdnctqU2fm+nCBTfZRhWu8rzO8lIvCg f32A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ph+RbvL6; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f13-20020a63554d000000b0037267073e78si351656pgm.704.2022.03.02.14.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 14:47:01 -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=@gmail.com header.s=20210112 header.b=Ph+RbvL6; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A2811EFFA8; Wed, 2 Mar 2022 14:38:57 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243752AbiCBRT0 (ORCPT + 99 others); Wed, 2 Mar 2022 12:19:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243740AbiCBRTW (ORCPT ); Wed, 2 Mar 2022 12:19:22 -0500 Received: from mail-oo1-xc2e.google.com (mail-oo1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EA4AC7E9D; Wed, 2 Mar 2022 09:18:38 -0800 (PST) Received: by mail-oo1-xc2e.google.com with SMTP id y15-20020a4a650f000000b0031c19e9fe9dso2628486ooc.12; Wed, 02 Mar 2022 09:18:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=cwLG9kTnhX2GqkeQf8KU8q/jw+pGFKDaUnw1ajiL6WA=; b=Ph+RbvL6FanSOSwQxZUf26lIJLD1mcS3h0APBOTmjL0rL8sL58KJLFAGiWptkhBp5f z5ZgRL+10UyFNfksj//XcL9pJCGCD6qYN9UCdiS8SIRssuw3151XtoQsw11ASk+hEEQs 7UWDCkB2pqpxxqJssBKAq8izDqfQt3z4hlBl78kUt3xIc/snzVPeNxjkge/VZOSWHaLR 40GJ26I2rx8DmUJSGIItZ1LqEOGI32dpoM2HZZb4qQv4d7UgQ4MF7I8MHghj3+jwXqm8 sv+M1n5AKMMjPdnNP0hgHgFXQ8GowrimHS7zngUz0tPwpAWrZaH9Fx1B11OQPzUNAcML C9vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cwLG9kTnhX2GqkeQf8KU8q/jw+pGFKDaUnw1ajiL6WA=; b=LNvUgFBFAZzAONYCafiqBWiLhv+0lmjkf3GptQLDrnFHQsCRQ+yln6WR4wYH10xY15 8z/imfVYtVk+3+woCjA84ao9eqfzlM/+9oRiEzqgNcZK9FCA9kqoA8I1eoM/qIIt4RKW AqxCCBt74+G3p4w9EZAQcqARZUf0rJrN2GanX8N19VjNTCOb/4AmneuE7tACvd6m49/U OHwY2aHcnPkEyAFWa0+zWMRHyJMRO2jATngrdPb3vWd2FPdpiDeK3tlRjGVX9WZ9iI7H RXb3auryrvuiAA/FHYquK9JSZaRk70hVYwdcAFcLOanPj0aC+sCXilLskJAl5/IuMOEX 4IDA== X-Gm-Message-State: AOAM533xeKufT9EOljbSplasytugfV5W+3mBj1iYIWtAnoI/qu5f+5uv YVg1qi9UMwEqKgxD/SCS8uqTenpnSso= X-Received: by 2002:a05:6870:c987:b0:d7:3d45:6692 with SMTP id hi7-20020a056870c98700b000d73d456692mr683349oab.34.1646241517676; Wed, 02 Mar 2022 09:18:37 -0800 (PST) Received: from localhost ([98.200.8.69]) by smtp.gmail.com with ESMTPSA id m7-20020a9d6447000000b005acf7e4c507sm7983689otl.20.2022.03.02.09.18.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 09:18:37 -0800 (PST) Date: Wed, 2 Mar 2022 09:18:35 -0800 From: Yury Norov To: Andy Shevchenko 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: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 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.