Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1173863rdb; Fri, 1 Dec 2023 08:46:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0h293PeAhLQWewwFarKRTYHL2xKaS87oFrnYNcDQF7aYkCJgIyLKvu2j8LK1JerjMGGaz X-Received: by 2002:a05:6a21:2c94:b0:18b:ada6:b70d with SMTP id ua20-20020a056a212c9400b0018bada6b70dmr21656959pzb.46.1701449211159; Fri, 01 Dec 2023 08:46:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701449211; cv=none; d=google.com; s=arc-20160816; b=sDS3HXSpaOY9jpi1C5u7S8I5g5Ijgbva5PgambJtC+VpUmVqgjS8NgkZmmpZHugTJb GAZRGTKg8nILYiQg5PuM/5ociQzgQRUg+xxRvT2Uuuj/ZtLZOg8zkrxsR9rkDKy7JJSi zRZHWNcQPsXk+Fx3BEDHCysLAY5j7nx0ZDHq7H+Navywck6qfFroViE3f0Pbih0z4XvP jtbFBGBGoF1WttBpRIQG5NaC/IPWcW3CeD86agovogYyJtMHhfLS1cGtmaI9BFj3I0hz ppLWyYfpDdVKfgcgVOnu08OqAL/I6QG3u1VRowBTKI3Z0VMdiUUOfQtX6S46qacrSq4+ aRHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=trs7IYTBAladXDE5IaepbZIO/2tonStqNHjIpFvn3vs=; fh=Q/fH0MXQ8bEMG7GvQzR7WzpnUtFs0zvUgGTdcX0KBlY=; b=pQR3uKDS5lx4BacBA0/bGBaThaEzuX1Apj5YX/MAdzUkBmEn4aTSIHGEzlaazDLtiw ZS+CCxgDpGKPnYFXw634BoACvK6JA+Pb2huD6VvRvx6trLQNU06cEm87uPknzBEEaBPL DZYZWh43SwTAPJeMp1BukcG15UtabPKdqb1ozXRHxo80jifZqO+e1pM3/jIqY8JWTxfN BXL3RY1R3Poi3qLBXRAuU85Qk7r4CnJX/5iSjNnwTf6ouUYJ5gHNL7qUI7FjycEeTa8z teu34Nk7sENdqpsxcwKT9iXFPfVG43PATatEapACy+y/P3R3MqNaQHbLzbN2M6uYQCN8 tvVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=euADoSzL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id g10-20020a656cca000000b005c1cd597808si3977180pgw.692.2023.12.01.08.46.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:46:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=euADoSzL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 59703805DC41; Fri, 1 Dec 2023 08:46:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229468AbjLAQqE (ORCPT + 99 others); Fri, 1 Dec 2023 11:46:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjLAQqD (ORCPT ); Fri, 1 Dec 2023 11:46:03 -0500 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B44EECF for ; Fri, 1 Dec 2023 08:46:09 -0800 (PST) Received: by mail-pg1-x54a.google.com with SMTP id 41be03b00d2f7-5bd18d54a48so766297a12.0 for ; Fri, 01 Dec 2023 08:46:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701449169; x=1702053969; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=trs7IYTBAladXDE5IaepbZIO/2tonStqNHjIpFvn3vs=; b=euADoSzLorY/O7MB9yfNpJpPfxoNMGBO3gjrEsVfcNQz9tRw6XmQ/1zpmS71Losjt3 CJHRuy/XC9ljcvoz5vNCUkuoG+AtKf1oV5AHeIvQLIZZ+0dAB6WherAiuFBBpdNzt/76 LPk/xT3A4NA96rQDeslproDTJJqCTFVb7Iff8vkHNQpSjG3ZwvQdT5JDBY2mIQ0LHjMY uR+A5pAqsJUB7fkNUvycOfyAdpxKVJCrhgAHKpF1r4kiy9VdEX46e+Vct1InogC1s8aZ Yxx4FSwb74EB8UyIL6zLDr9eixEFdsyzCeTa2jKyUUnpVgclXx+yKtPNstLsqYXcg3gy gGGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701449169; x=1702053969; h=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=trs7IYTBAladXDE5IaepbZIO/2tonStqNHjIpFvn3vs=; b=nqHLg6ge+F9kPzLc5Rpdp8YY/spc7l1f4UFJ0nKexVTCR1oWBKpY9vprUY6O88T48g PAaNUe3OoWKSuyAaqZUz2iH7+N2/RNPU3P4GNusi+ExiAjQjSh/BHoPmXhsPGEiRWDz5 GGhCzMqyL1WOY07kHSWg9FQFA5yfGn3vmL/a5swxUP4B4kqV74V4M344O4QbYrvCAZPk n/ZVAF18s4ykPmq204+KbdgHs5HycU4MJQbhhCcbHcSY7hZ1znv857cp4aqzH21DIJqs B4Af7GZlNcny3PA5BiRBsll2nWrzJdMBmYKlL7iHX3IncGNGGMfz0Df/m2u885M4DlHZ MjQA== X-Gm-Message-State: AOJu0Yzk0TgjG21H5W2EhCY9yhOiyitEY4zMg64EeCotCp9IzzhrlST2 hlhALNmIa5nRb6Cs3vxC7oc+5o95EO4= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a65:620b:0:b0:5bd:3c9d:42aa with SMTP id d11-20020a65620b000000b005bd3c9d42aamr3892944pgv.7.1701449169223; Fri, 01 Dec 2023 08:46:09 -0800 (PST) Date: Fri, 1 Dec 2023 08:46:07 -0800 In-Reply-To: <20231201104536.947-1-paul@xen.org> Mime-Version: 1.0 References: <20231201104536.947-1-paul@xen.org> Message-ID: Subject: Re: [PATCH 0/2] KVM: xen: update shared_info when long_mode is set From: Sean Christopherson To: Paul Durrant Cc: David Woodhouse , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" 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,T_SCC_BODY_TEXT_LINE, 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 pete.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 (pete.vger.email [0.0.0.0]); Fri, 01 Dec 2023 08:46:21 -0800 (PST) On Fri, Dec 01, 2023, Paul Durrant wrote: > From: Paul Durrant > > This series is based on my v9 of my "update shared_info and vcpu_info > handling" series [1] and fixes an issue that was latent before the > "allow shared_info to be mapped by fixed HVA" patch of that series allowed > a VMM to set up shared_info before the VM booted and then leave it alone. Uh, what? If this is fixing an existing bug then it really shouldn't take a dependency on a rather large and non-trivial series. If the bug can only manifest as a result of said series, then the fix absolutely belongs in that series. This change from patch 1 in particular: -static int kvm_xen_shared_info_init(struct kvm *kvm, u64 addr, bool addr_is_gfn) +static int kvm_xen_shared_info_init(struct kvm *kvm) practically screams for inclusion in that series which does: -static int kvm_xen_shared_info_init(struct kvm *kvm, gfn_t gfn) +static int kvm_xen_shared_info_init(struct kvm *kvm, u64 addr, bool addr_is_gfn) Why not get the code right the first time instead of fixing it up in a completely different series?