Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp196078ybh; Tue, 14 Jul 2020 22:51:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtMycN9GH0NjTKcEsDJw0D65qj1qhBZd9PV5bByNZ54p2k+XNOFEnTw0TrSObBWKgRSxVT X-Received: by 2002:a17:906:66d0:: with SMTP id k16mr7881866ejp.293.1594792289173; Tue, 14 Jul 2020 22:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594792289; cv=none; d=google.com; s=arc-20160816; b=YNDDdsxTPKF+edpiN+Tjh7CfEYjpT1mVA2+nfL4RIb/Q4o9duDHTtIkYfPrdAY8q3a pFPO2ocCE8alCLx7N8XlPQhJAC75skf12cA0RqrGj/GZldo51Wb71DGzJVQr+FBvrH1f nWXtIqTWvzQSSu8ry/qqJF+kxxzhS5FHUJgqpMekTsnZn2xZ/f+STJ+S2bf1Xch/f7Ka wPDtmwN4i6N7cbU6QDJiRfdX03pLZHyiGL1aBThFORJCxc2p0bQPyoY8oTPDTFdjzIgv Rt4UWqwb3u7vrP3QmGAtVqsKhIRjDFAhBUPOz39W1N4agkddeZB56S5NyjL1R2+iy6jD 2nXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=Pl/PRgYGNAt8dxpcnlkO8RtWpf/mQ2k29XzA6qlugE8=; b=Bz5NtdShPUwBxbguYOU9xzIM4gXL0eBLTkgEj3Oj1eUZTf/ZEM3m7IWgxfAEo5/5FR 3bENtxA4tj8Gp8hS8Wh5etOQHtYvmvE5jee/EqZRXqdoyOOezG9Bp+R+kum7rgTnlOer sTYY0PBOKwKFmuUorLry9D5PcyyUA+afMC2r1caUXiL7Eq9zomenBcR9maNsz8iL4g4N hdxjc88GgRFxCjVPKOL/VO781cOYIiEBs0ehZtSE2di9hcl/dCvSZIzIKrulhnDfGiO3 jYUUFP1nXokpsKy/gT/OI3E0FviXJstBguVuoXnMrvwzqZBjwYnZ1Xq4aKxc4/RLYkST lMAQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si671264edy.187.2020.07.14.22.51.06; Tue, 14 Jul 2020 22:51:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725977AbgGOEgM (ORCPT + 99 others); Wed, 15 Jul 2020 00:36:12 -0400 Received: from mga02.intel.com ([134.134.136.20]:62154 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbgGOEgL (ORCPT ); Wed, 15 Jul 2020 00:36:11 -0400 IronPort-SDR: zzn39vgLgbXi0qnq6hOxjYSxFTUfMnOeTLbcYbVZadbehq2g6ta/TZK+unV7F7eQaVyIplwS+R U5cYyt2lTHeA== X-IronPort-AV: E=McAfee;i="6000,8403,9682"; a="137209908" X-IronPort-AV: E=Sophos;i="5.75,354,1589266800"; d="scan'208";a="137209908" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2020 21:36:11 -0700 IronPort-SDR: FrWtwjUjHLiCzh7e6Apd6mNCDEQYWBCNGa+rOe2YiIz9CR54NKkx394U05SrAObHpbfVCiQy6y p14f+Ww3D/yA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,354,1589266800"; d="scan'208";a="429992962" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.152]) by orsmga004.jf.intel.com with ESMTP; 14 Jul 2020 21:36:11 -0700 Date: Tue, 14 Jul 2020 21:36:11 -0700 From: Sean Christopherson To: Vitaly Kuznetsov Cc: kvm@vger.kernel.org, Paolo Bonzini , Wanpeng Li , Jim Mattson , Junaid Shahid , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 5/9] KVM: nSVM: introduce nested_svm_load_cr3()/nested_npt_enabled() Message-ID: <20200715043609.GF14404@linux.intel.com> References: <20200710141157.1640173-1-vkuznets@redhat.com> <20200710141157.1640173-6-vkuznets@redhat.com> <20200713223814.GG29725@linux.intel.com> <87zh82s5gf.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zh82s5gf.fsf@vitty.brq.redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 01:26:24PM +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > IMO the addition of nested_npt_enabled() should be a separate patch, and > > the additoin of @nested_npt should be in patch 7. > > > > Hypothetically speaking, if nested_npt_enabled() is inaccurate at the call > > site in nested_prepare_vmcb_save(), then this patch is technically wrong > > even though it doesn't introduce a bug. Given that the call site of > > nested_svm_load_cr3() is moved in patch 7, I don't see any value in adding > > the placeholder parameter early. > > > > I see and I mostly agree, I put it here to avoid the unneeded churn and > make it easier to review the whole thing: this patch is technically a > nop so it can be reviewed in "doesn't change anything" mode and patches > which actually change things are smaller. > > Paolo already said 'queued' here and your comments can't be addressed in > a follow-up patch but I can certainly do v5 if needed. Eh, not necessary, I didn't see that the series was in kvm/queue until after I hit send. Thanks!