From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEC12371887; Tue, 1 Sep 2026 07:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788248781; cv=none; b=tTwemuk5mYzb69Yh0xO80sNPPMfQHlE0FKlYDvb44lFJbMDOz0LoAC9dkzr4D0JE45A+Xi31O2QGInbk67rHKjv8Nz4da3SbycunJoDbH8hPLjYKqPVw4sNnnr7j8W2ZJQIaTVO5sM2u0EJ9oH9DmZVDpU2PqRPqlmBNLwwk+QQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788248781; c=relaxed/simple; bh=+YV2Crc/2Pkj3Cgew2GC2h9KLioi59DQ7h35aF3CIdY=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=KWYyQ00+rO62iDTgwuJIMjIC+mbYmjpvw/eJu9I044WZeNITubrxJqOKpakBtafmRGFhL4a8ZPn9xL5dKDF8uybt6FD1U9sR2a2FrkyiF8pV7KAWt6zg0YMYsgocpDgkBw25NNoa03AjyJoLFuifxP1MSUUguIitNqEX/oaYNWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kgcra3RW; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kgcra3RW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 417FC1F000E9; Tue, 1 Sep 2026 07:46:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788248780; bh=ppvYUZdPBmuaBv1YdwpjusxCdqJckL+Q48S47VSYESw=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=kgcra3RW2Y0FmlVVaIMjCWPhG9oH8mn5lyDloXP2WiFqGhcpLyawUZasaZOBc6uCB b88wljyLeHQ4I8ratx5Tst/lzkCEP3KIqKfIhr4xslhdhAQIE4rP6mJI5x/ld9h9u9 ZGuslPT4fCuVzTd8PE1bthyv6MkQ+r7MxgfI7nS2I6oR6bvwOXEBk2dL0/C+0tCxL+ d8/X3DaIXIRma8/N6PDEmUoUm5pAV4mQ94qhZ/o7O3RCdTiaBU5aiWN7XvuSjnRCnK +EcSYt5WXqSutjqgiX6jYDANj0GnkapvxB2t25MEvuK/LBRYPRBc7VoMrWiilOgoI3 v+mtzXfI8IpfQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x1JCD-00000003BOj-2WY3; Tue, 01 Sep 2026 07:46:17 +0000 Date: Tue, 01 Sep 2026 08:48:50 +0100 Message-ID: <87wlt5mmxp.wl-maz@kernel.org> From: Marc Zyngier To: Steffen Eiden Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Alexander Gordeev , Andreas Grapentin , Arnd Bergmann , Catalin Marinas , Christian Borntraeger , Claudio Imbrenda , David Hildenbrand , Friedrich Welter , Fuad Tabba , Gautam Gala , Hariharan Mari , Heiko Carstens , Hendrik Brueckner , Ilya Leoshkevich , Janosch Frank , Joey Gouly , Nico Boehr , Nina Schoetterl-Glausch , Oliver Upton , Paolo Bonzini , Suzuki K Poulose , Sven Schnelle , Ulrich Weigand , Vasily Gorbik , Will Deacon , Zenghui Yu Subject: Re: [PATCH v2 02/20] KVM: arm64: Extract number of sys_reg_desc into a constant In-Reply-To: <20260831145536.913567-3-seiden@linux.ibm.com> References: <20260831145536.913567-1-seiden@linux.ibm.com> <20260831145536.913567-3-seiden@linux.ibm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: seiden@linux.ibm.com, kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, agordeev@linux.ibm.com, gra@linux.ibm.com, arnd@arndb.de, catalin.marinas@arm.com, borntraeger@linux.ibm.com, imbrenda@linux.ibm.com, david@kernel.org, fritz@linux.ibm.com, tabba@google.com, ggala@linux.ibm.com, hari55@linux.ibm.com, hca@linux.ibm.com, brueckner@linux.ibm.com, iii@linux.ibm.com, frankja@linux.ibm.com, joey.gouly@arm.com, nrb@linux.ibm.com, oss@nina.schoetterlglausch.eu, oupton@kernel.org, pbonzini@redhat.com, suzuki.poulose@arm.com, svens@linux.ibm.com, Ulrich.Weigand@de.ibm.com, gor@linux.ibm.com, will@kernel.org, yuzenghui@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Mon, 31 Aug 2026 15:55:17 +0100, Steffen Eiden wrote: > > Define the constant `num_sys_reg_descs` which stores the number of > elements in the sys_reg_descs array. Replace all occurrences of > ARRAY_SIZE(sys_reg_descs) with the new constant. > > This refactoring eases the integration of handling system registers for > arm on s390. How? What is so different in the way you are handling the sysreg array that you need some arbitrary constant that is not the array size? Why is this the only array you care about? Why not the sys_insn_descs array, for example? It feels like you are papering over some other design issue, and I'd like to understand that. Thanks, M. -- Jazz isn't dead. It just smells funny.