Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D93A7C433F5 for ; Wed, 1 Dec 2021 15:47:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351219AbhLAPuN (ORCPT ); Wed, 1 Dec 2021 10:50:13 -0500 Received: from vps-vb.mhejs.net ([37.28.154.113]:46364 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236266AbhLAPtQ (ORCPT ); Wed, 1 Dec 2021 10:49:16 -0500 Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1msRnb-0008Gg-11; Wed, 01 Dec 2021 16:45:35 +0100 To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Igor Mammedov , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Huacai Chen , Aleksandar Markovic , Paul Mackerras , Christian Borntraeger , Janosch Frank , David Hildenbrand , Cornelia Huck , Claudio Imbrenda , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandru Elisei , Atish Patra , Ben Gardon , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: From: "Maciej S. Szmigiero" Subject: Re: [PATCH v6 21/29] KVM: Resolve memslot ID via a hash table instead of via a static array Message-ID: Date: Wed, 1 Dec 2021 16:45:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.12.2021 03:54, Sean Christopherson wrote: > On Tue, Nov 30, 2021, Maciej S. Szmigiero wrote: >> From: "Maciej S. Szmigiero" >> >> Memslot ID to the corresponding memslot mappings are currently kept as >> indices in static id_to_index array. >> The size of this array depends on the maximum allowed memslot count >> (regardless of the number of memslots actually in use). >> >> This has become especially problematic recently, when memslot count cap was >> removed, so the maximum count is now full 32k memslots - the maximum >> allowed by the current KVM API. >> >> Keeping these IDs in a hash table (instead of an array) avoids this >> problem. >> >> Resolving a memslot ID to the actual memslot (instead of its index) will >> also enable transitioning away from an array-based implementation of the >> whole memslots structure in a later commit. >> >> Signed-off-by: Maciej S. Szmigiero >> Co-developed-by: Sean Christopherson >> Signed-off-by: Sean Christopherson > > Nit, your SoB should come last since you were the last person to handle the patch. > Thought that my SoB should come first as coming from the author of this patch. Documentation/process/submitting-patches.rst says that: > Any further SoBs (Signed-off-by:'s) following the author's SoB are from > people handling and transporting the patch, but were not involved in its > development. SoB chains should reflect the **real** route a patch took > as it was propagated to the maintainers and ultimately to Linus, with > the first SoB entry signalling primary authorship of a single author. So "further SoBs follow[] the author's SoB" and "the first SoB entry signal[s] primary authorship". But at the same time "SoB chains should reflect the **real** route a patch took" - these rules contradict each other in our case. Thanks, Maciej