Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp265288rwb; Wed, 14 Dec 2022 17:08:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf7EapmdX99RYlnRx7QGnw/hTH3C7VdbsIOa3XmqRPUglFaFIdPEG43KoMTD7YEaFT4k4/UC X-Received: by 2002:a05:6402:f93:b0:46c:e974:fa58 with SMTP id eh19-20020a0564020f9300b0046ce974fa58mr21840111edb.20.1671066500734; Wed, 14 Dec 2022 17:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671066500; cv=none; d=google.com; s=arc-20160816; b=GaT7mzQDzzgD7zSkxvQeXAy1xJ0tM3xfv6CzQEKb0+nHWMxC+OcMxoz7gHllreYhYD aQ2TPamjlh2nP3SV5shY46LpCtMcu1IcHuK0bZpekVyikQInE74xo13wV9m4KTKjKjZ2 1YDP85VBhttWKlF9ZeTrSeo7B4+ObCtrtmqR8lNw/3dMWNTgoAzw+t9kLbJC6EH6gm6g HwwCdSnYeMIVYOLc9EgzjjKCK57wY2cNeYPKwhA687Y8RLoE6mfehw9nJA5MHPi2CRp4 SeuuLROzHoeT7nxdmmNZZAOCswQxctzpL1RV2aD12Et5mhwB8tntpZe9hY4fe+4UbMic Km5w== 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=z/1fVhdM3NBYMXBQfLHzy+1+572vRA9PCs2hB32i8rE=; b=WX8KvTIfef8Dc7Ion+YvxW19eZZNIe3FYVggIZ2WuMQ4hzTR6hM421BHg7bD5mOHkN ukjlqNvJmP+lb0M2rn2jQgpP1pJf+1u8c+lZXSyLZ2/RfDp8XlIBAkm6KlftRwb6u1Zf LcPJI4RIDjV7QRXusA6ENmibov4L++7TU33bQVyi06rf+ujlp+FVS87FD+rSo9Pd4t0M MYGb/zvS0T935cGrXxKmuwSKSd6+qznRiaD8XW4w5/U1QUeYiu1kKvnjNz4y3XFx1Xua +j6H7qIraExs9NokMBHeRj0Tg63aaoMWLY38gO2+xOloz0N/e91RxNTGl7rmuO4wWKKt cMew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=tdJFfFqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b41-20020a509f2c000000b0045c93142111si12460352edf.70.2022.12.14.17.08.03; Wed, 14 Dec 2022 17:08:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=tdJFfFqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbiLOAem (ORCPT + 69 others); Wed, 14 Dec 2022 19:34:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiLOAej (ORCPT ); Wed, 14 Dec 2022 19:34:39 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2038336C48 for ; Wed, 14 Dec 2022 16:34:37 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id g10so5149452plo.11 for ; Wed, 14 Dec 2022 16:34:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=z/1fVhdM3NBYMXBQfLHzy+1+572vRA9PCs2hB32i8rE=; b=tdJFfFqmGXwvTNz7GXq3kJkLcGeqjAvDM167pZDfGZyich8NHDMQ/EFUsFMV/gHd9s jwLcQNfKe2R7q9+q5CZFT1cRBSO9dIIwQmBFV/FBeODZE3fJpsthkt+LBdBdHrXO2+gB wwQigHZRfuflKggdhkNMal/+J9SW21KA//wjcjidt4tgJhTC8prNNuDw9LVeOpacueI5 xz+r3DJIYpyvd4MXqR4suXoFPZV4BnK39OR4oXble+2s1O3HbZlhhA9X46GEkK8YviFa NApnG4av4ur33LoOfPltEn0pmyB7Bn2ZWMKBmiiQpOyAgsxcKS6X+GeoT/TuzSZ30zub RU+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=z/1fVhdM3NBYMXBQfLHzy+1+572vRA9PCs2hB32i8rE=; b=VYMXYvh52dQEUULGFlOMpHweciCb4YnvsjKRt7k4XBNzwc0sO7W8NjJcBt/qbvgv4E Isa+5Cppb4K8YLw9mtxlBlrur7POyqXwRCo98VIhCLMASGASjYWQw9OtpkkFQkkepBaX X+hJZvD6ZW9/fCVRZshufzCvxgbE7I2Xo/3QT+EgK5kfxNF42Hn1OktG3F+UvH/gIcXN yW2upwc063kckcDMQuHSmfiBk6hdR59oPmqNYNw4wqyIhQNrpHB/BExKuTTexm6/jTG8 UPc7GdLVEE3MFbKTZR08sIWNb7tk6oTUkbcDHyQTwSlUZy1Yqq6R3vUWVBWixyLApGtv NbUg== X-Gm-Message-State: AFqh2koL2Q3oIhs+VSrTUxmGpS2cn5SZGxA0KcOTy3r6nQ2Q1Hw38tXl WbS9qQ3LxKh6J20MIidDNagCIA== X-Received: by 2002:a17:902:a587:b0:189:6d32:afeb with SMTP id az7-20020a170902a58700b001896d32afebmr802994plb.1.1671064476465; Wed, 14 Dec 2022 16:34:36 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id x22-20020a170902821600b00189a50d2a38sm2440781pln.38.2022.12.14.16.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 16:34:34 -0800 (PST) Date: Thu, 15 Dec 2022 00:34:30 +0000 From: Sean Christopherson To: Ben Gardon Cc: David Matlack , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Peter Xu , Vipin Sharma Subject: Re: [PATCH 2/7] KVM: x86/MMU: Move rmap_iterator to rmap.h Message-ID: References: <20221206173601.549281-1-bgardon@google.com> <20221206173601.549281-3-bgardon@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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, Dec 14, 2022, Ben Gardon wrote: > On Tue, Dec 13, 2022 at 4:59 PM Sean Christopherson wrote: > > And if we rename pte_list_head, then we might as well commit 100% and use consisnent > > nomenclature across the board, e.g. end up with ... > I'd be happy to see some consistent SPTE-based naming in the Shadow > MMU and more or less get rid of the rmap naming scheme. Once you > change to spte_list_head or whatever, the use of the actual rmap (an > array of spte_list_heads) becomes super narrow. Yeah. And at least for me, the more literal "walk a list of SPTEs" is much easier for me to wrap my head around than "walk rmaps". > Given the potential for enormous scope creep on what's already going > to be a long series, I'm inclined to split this work into two parts: > 1. Move code from mmu.c to shadow_mmu.c with minimal cleanups / > refactors / renames; just move the code > 2. Clean up naming conventions: make the functions exported in > shadow_mmu.h consistent, get rid of the whole rmap naming scheme, etc. > > That way git-blame will preserve context around the renames / > refactors which would be obfuscated if we did 2 before 1, +1 > and we can reduce merge conflicts. That might be wishful thinking ;-) One thought for the rename would be to gather all the reviews and feedback, and then wait to send the final version until shortly before the merge window, i.e. wait for everything else to land so that only future development gets affected. That would give Paolo and I a bit of extra motiviation to get the x86 queue solidified sooner than later too...