Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp565713pxb; Wed, 3 Nov 2021 08:43:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ69TE+CFigFfbiplanwNTnN+s3kTIzQZIxw7B+hMEYMwWvcjhv07W25K2H3PD6VhoGGcW X-Received: by 2002:a05:6402:4d5:: with SMTP id n21mr60840059edw.303.1635954223897; Wed, 03 Nov 2021 08:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635954223; cv=none; d=google.com; s=arc-20160816; b=KjWU1/xFGwwuIVVqZPLbOTULhYMR4Leu/J10lNQ/G3KdwVoPm031tLP5pSXRDc/z0u K2StlKd93yX5M2Rl8kheVPYpcuJBXT6UivDVwe2zobeqZdL2d1m/9w4R3liiKlEqs04E BUdBTEfkpnujTHy5hjp69T5rSetbTRDA3JFNU9UmhSFybtYQ3h6Tw3u2MG8Yo9upIog/ 9XfcOZWCztKLg0QJdSSdItkQG+iq+m2pI6RudbiO2STpExQn/y5ivFRnhRm7QQFCI5Xa SRR8OVdo3qJmMmaHMW5KVznyXlmfJ/ZjUpygWWmCHZ3394LebhQ7HzEpOfJcd5p148qx yQgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=5U5ovdqFfUAts8T97qQRGo2HZIWDwvEeLQWNygKx+N0=; b=nLWcTrJPDlYvwKOMkN1OpA9tBZBHHW2ibKuX0pp11/lGkucyQuCnGUc101m+Q/iqBk U4v04ZOjqVl5eS9LoFQu3ukY5SInP+Boiv+Rznfz/ys4uwQYfPgGtG55qGlJwHySpx3f EI6lv4WmuwtC9MkRO8Xnn7Q/thumXEmIIketln8eVau+4FJQv9ulcxbEBo6euTS7IgNq UqeP8Bp2vJgqhjEjZzjxBOHXCA5K50EY8/2bZS9pH5Pcw/wq7rams4SPRPxLOkKdpjMe tpk18Rz+xaUF3s/JpBOuu+hBlYe7hm857KX+U6sVWHexNz0iVeaDw4rRjyeidD9qcM1w LZVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si5973644edb.72.2021.11.03.08.43.18; Wed, 03 Nov 2021 08:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231502AbhKCPlC (ORCPT + 99 others); Wed, 3 Nov 2021 11:41:02 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:59576 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbhKCPlB (ORCPT ); Wed, 3 Nov 2021 11:41:01 -0400 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 1miIL9-0007Pv-Uy; Wed, 03 Nov 2021 16:38:15 +0100 Subject: Re: [PATCH v5 01/13] KVM: x86: Cache total page count to avoid traversing the memslot array To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , 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 , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <8017cf9d-2b03-0c27-b78a-41b3d03c308b@maciej.szmigiero.name> From: "Maciej S. Szmigiero" Message-ID: <27ba659b-137e-863f-7892-b8968fd14e59@maciej.szmigiero.name> Date: Wed, 3 Nov 2021 16:38:10 +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: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03.11.2021 15:47, Sean Christopherson wrote: > On Wed, Nov 03, 2021, Maciej S. Szmigiero wrote: >> Capping total n_memslots_pages makes sense to me to avoid the (existing) >> nr_mmu_pages wraparound issue, will update the next patchset version >> accordingly. > > No need to do it yourself. I have a reworked version of the series with a bunch > of cleanups before and after the meat of your series, as well non-functional changes > (hopefully) to the "Resolve memslot ID via a hash table" and "Keep memslots in > tree-based structures" to avoid all the swap() behavior and to provide better > continuity between the aforementioned patches. Unless something goes sideways in > the last few touchups, I'll get it posted today. > Thanks.