Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp142140rdb; Mon, 18 Sep 2023 10:23:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIREpWa0enKfQikOh6ObNQc4MOI9Sny+zwoFG6b+sYy1+5+UxlfVMZZZl9JVWV5yzCDmEa X-Received: by 2002:a05:6808:10d6:b0:3ad:c262:7a0a with SMTP id s22-20020a05680810d600b003adc2627a0amr8444774ois.55.1695057791893; Mon, 18 Sep 2023 10:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695057791; cv=none; d=google.com; s=arc-20160816; b=KixRvWi5zxTtxkCLe0nDXJHMeh1FcOBdmQzRngPGfm7ez9w65j8olVG12DVIJsr0xT XQuU+VlQvUnrdX/axzouQybzFbkK+3emnsCEvDET53Lf8gn0VFhAg9arxSB2AoFDEQBM 6ZU7mCnMon8G6r0fyAhObHi2qujFLRluFjI/J6b0d6SBPk5VZwJ6xrZ+W6jahD5mnVD4 Q3AQoOypRvTp8YoypW9G49qKCm36zvHHx8SnKF9tKZWJ55E7Q4wmnZnsDkEhNCPN61q2 zF3shCGo5CNEyiGJqcaej1bwhf53lUeQPt16uorHulvJasAyfUs6SqPrDs1k1VK0w3O9 cW3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:dkim-signature; bh=659GHH68Qik1MotwcN3AFB6jrNnzdXDCMl8drsSEIHc=; fh=lARKKoKw2g5vl+m4ojV7ujQazN3xYsih1atsJZUP+Pc=; b=ABk+d6joO5beDAQIcWeA3NzutGoM3v/koXoisfYV5KdC3EzSaPQQ5h4McjjYdp12v6 c+ah8mSPSdKPSH35NL7wn5gyzvZfagEXU64+7ITyt9dZpuLVf6o6I9rK+lsi0Xkdwvom jCgqhmjk9VaTdFHG7dv/a+RgHj+TRA8qdOAbEO0SwhzjyurgPE+RPDw8JwYbglzvgRSE 4XBsY0HsiBVQSVdVaFsZDTGCOwUtLZ6VuByX+TZ26MI+ptxQEmkmfa1r1Y0vUmHVv+Ap N94lojSe0/LpuHBCKftskXPvjKxwMEcZ/GqCGNp7twGza2DU8zLYLk8fV1P4W8sMOmzl XsdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hLGbuAKr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c66-20020a633545000000b0057835675777si5399660pga.344.2023.09.18.10.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:23:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hLGbuAKr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D8E7A80998B4; Mon, 18 Sep 2023 10:12:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231432AbjIRRMX (ORCPT + 99 others); Mon, 18 Sep 2023 13:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231402AbjIRRMV (ORCPT ); Mon, 18 Sep 2023 13:12:21 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E136494 for ; Mon, 18 Sep 2023 10:12:14 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1c448ba292dso19001345ad.3 for ; Mon, 18 Sep 2023 10:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695057134; x=1695661934; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=659GHH68Qik1MotwcN3AFB6jrNnzdXDCMl8drsSEIHc=; b=hLGbuAKrE9DTWGy1Riv8q2MsmtJU0sgfB7owLe8oD59FJwWjNltypX2v6lqJ649R7W WSiRqstwLarwAF/w8g1/wEfN28U0C7wFGOgS1QZKy56JhWC/Bqf+RCcDpwvszrBAGkHg JoxTeVPsztu919g6A6R285gjT0Ub/dhEBi18DWdSvIUpgGrtbTwaOv2Of4cwJTO/T9IO c7dLJPjcYQClGbF9YeSmAcg2IQHH0E7AyS27V1bG0n1TETXOUET1c82uhxLjbSfhS7RD LEUCucqaSkR5KX4jYFA63Z9fBss4m7rXRU0sJ0R/fIRm0dId7vG296MpSb2fSkXN6U95 jGTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695057134; x=1695661934; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=659GHH68Qik1MotwcN3AFB6jrNnzdXDCMl8drsSEIHc=; b=UDhMXb5tbuHvsjQ5gh314e6im6kU0mZyXVQu/9eN4yBOg9SCoKc15cuEDoD9NyEc5x FqmD6N6+aMM6Bcq5TB4pEfAfUn6As2MYlSyJSoarnMC2oh7PNHHCv4UBo9vRyYg1LkzI kiDB3WvT6Xl5cbX8F+mfkEtDGPs1YZ4YhXS7BF8D2Tnwzk76AB3c6xjlioI92grUyqDd JyHkYhjj2LXg52jC+zOEDBeVMLrHkZgSV5uIxI4LEsDriYDeCthLszLOUK1W/UE8XMdU 3PHACoPM+GIR+THFOwXnaTk17Pc5EAhdYrwDQ6WohCc6F5YOu5UTOswzl+oazEBG4VxP Wmhg== X-Gm-Message-State: AOJu0Yx1+poFHMg2EwqUdB9oSSU1xW9eaZ8Mdx3Pdwyw3PPntk5S8tB4 ZQQuwP4JqER12ijzdd+asA0DvcAI3bk= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:db01:b0:1c3:411c:9b7c with SMTP id m1-20020a170902db0100b001c3411c9b7cmr198939plx.13.1695057134315; Mon, 18 Sep 2023 10:12:14 -0700 (PDT) Date: Mon, 18 Sep 2023 10:12:13 -0700 In-Reply-To: <8527f707315812d9ac32201b37805256fab4a0a1.camel@infradead.org> Mime-Version: 1.0 References: <20230918144111.641369-1-paul@xen.org> <8527f707315812d9ac32201b37805256fab4a0a1.camel@infradead.org> Message-ID: Subject: Re: [PATCH v3 00/13] KVM: xen: update shared_info and vcpu_info handling From: Sean Christopherson To: David Woodhouse Cc: Paul Durrant , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Durrant , "H. Peter Anvin" , Borislav Petkov , Dave Hansen , Ingo Molnar , Paolo Bonzini , Thomas Gleixner , x86@kernel.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 10:12:34 -0700 (PDT) On Mon, Sep 18, 2023, David Woodhouse wrote: > On Mon, 2023-09-18 at 09:18 -0700, Sean Christopherson wrote: > > On Mon, Sep 18, 2023, Paul Durrant wrote: > > > From: Paul Durrant > > >=20 > > > Currently we treat the shared_info page as guest memory and the VMM i= nforms > > > KVM of its location using a GFN. However it is not guest memory as su= ch; > > > it's an overlay page. So we pointlessly invalidate and re-cache a map= ping > > > to the *same page* of memory every time the guest requests that share= d_info > > > be mapped into its address space. Let's avoid doing that by modifying= the > > > pfncache code to allow activation using a fixed userspace HVA as well= as > > > a GPA. > > >=20 > > > Also, if the guest does not hypercall to explicitly set a pointer to = a > > > vcpu_info in its own memory, the default vcpu_info embedded in the > > > shared_info page should be used. At the moment the VMM has to set up = a > > > pointer to the structure explicitly (again treating it like it's in > > > guest memory, despite being in an overlay page). Let's also avoid the > > > need for that. We already have a cached mapping for the shared_info > > > page so just use that directly by default. > >=20 > > 1. Please Cc me on *all* patches if you Cc me on one patch.=C2=A0 I bel= ive this is > > =C2=A0=C2=A0 the preference of the vast majority of maintainers/reviewe= rs/contributors. > > =C2=A0=C2=A0 Having to go spelunking to find the rest of a series is an= noying. > >=20 > > 2. Wait a reasonable amount of time between posting versions.=C2=A0 1 h= our is not > > =C2=A0=C2=A0 reasonable.=C2=A0 At an *absolute minimum*, wait 1 busines= s day. > >=20 > > 3. In the cover letter, summarize what's changed between versions.=C2= =A0 Lack of a > > =C2=A0=C2=A0 summary exacerbates the problems from #1 and #2, e.g. I ha= ve a big pile of > > =C2=A0=C2=A0 mails scattered across my mailboxes, and I am effectively = forced to find and > > =C2=A0=C2=A0 read them all if I want to have any clue as to why I have = a 12 patch series > > =C2=A0=C2=A0 on version 3 in less than two business days. >=20 > I meant to mention that too. >=20 > > P.S. I very much appreciate that y'all are doing review publicly, thank= you! >=20 > Well, to a certain extent you can't have both #2 and the P.S. Or at > least doesn't work very well if we try. >=20 > Paul and I were literally sitting in the same room last Friday talking > about this, and of course you saw the very first iteration of it on the > mailing list rather than it being done in private and then presented as > a fait accompli.=C2=A0We try to set that example for those around us. >=20 > (Just as you saw the very first attempt at the exit-on-hlt thing, and > the lore.kernel.org link was what I gave to my engineers to tell them > to see what happens if they try that.) >=20 > And there *are* going to be a couple of rounds of rapid review and > adjustment as we start from scratch in the open, as I firmly believe > that we should. I *want* to do it in public and I *want* you to be able > to see it, but I don't necessarily think it works for us to *wait* for > you. Maybe it makes more sense for you to dive deep into the details > only after the rapid fire round has finished? >=20 > Unless you don't *want* those first rounds to be in public? But I don't > think that's the right approach. >=20 > Suggestions welcome. >=20 > Maybe in this particular case given that I said something along the > lines of "knock something up and let's see how I feel about it when I > see it", it should be using an 'RFC' tag until I actually approve it? > Not sure how to extrapolate that to the general case, mind you. Tag them RFC, explain your expectations, goals, and intent in the cover let= ter, don't copy+paste cover letters verbatim between versions, and summarize the= RFC(s) when you get to a point where you're ready for others to jump in. The cove= r letter is *identical* from v1=3D>v2=3D>v3, how is anyone supposed to unders= tand what on earth is going on unless they happened to be in the same room as ya'll o= n Friday? Doing rapid-fire, early review on beta-quality patches is totally fine, so = long as it's clear that others can effectively ignore the early versions unless = they are deeply interested or whatever. A disclaimer at the top of the cover letter, e.g. This series is a first attempt at an idea David had to improve performanc= e of the pfncache when KVM is emulating Xen. David and I are still working= out the details, it's probably not necessary for other folks to review this r= ight now. along with a summary of previous version and a transition from RFC =3D> non= -RFC makes it clear when I and others are expected to get involved. In other words, use tags and the cover letter to communicate, don't just vi= ew the cover letter as a necessary evil to get people to care about your patches.