Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1719519pxj; Wed, 19 May 2021 12:16:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzj//xiWSvLcKWRysJhrDVcRiSAge4QnbopqV7JIy+CcMuDe31cOymY06iPU/u94S0TTPJ X-Received: by 2002:a05:6638:13c4:: with SMTP id i4mr650596jaj.37.1621451762041; Wed, 19 May 2021 12:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451762; cv=none; d=google.com; s=arc-20160816; b=iY1Rl1urIfT6+KprFHriYIjC+SoHWvJs07Thj0lEBE3wBYzrvrdyF8tK7XdOGG2Snd rTVSHuMyVyBH2u6358ql5nXvIbBxwmSQ5AiON+OiQNGswh3+GZzTkzkdXsaRPbZIDL22 iR0a4fs5DPp2N9t0GCrVYSUdm6JpvZcn8H9P8VNou49zm0KLt03sqMjWYHzA1oZ0KDHy ZwlfFkaDr5ATCG+p00gpzBPMGZWOdv4Fq1kepMU4Jzlfd1OsIcL6B2GC2WfJ8DdGxM67 FXPgWHp4ugndKZlXT6j2OziklLy/2MikQxsTwbk4XPK/MFVmZVIU349/yNeEvQ5rCQLD m8MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FmPY4Xy03mz1vCnGspPbUoX0UiPu9Hq5FqWkhs/6VR8=; b=tVKU0O5KK0bWIDI+X94d0KNhywjR8HMEfI5WUuQnFAKR6vxbwmGkdrTN/LTToSLITR 31+auPdi4KM5wZbliojE51MbJBgeTKv9Ruvk0Hk3F6nK/empokg35QIuVmWJHezfKEE3 BDLB41ES1KXcZB0GVHi2bRe259BFJYTRFC2TDxolwFG2wFWleSKXjqGc5au2EwYt0vQi khyBbU6m20rdpdFwHFb5MrDsiaEAt3g7EyeElrYjJWmDTfAFZljciwxSMCvdsRghdsYn wxGsdyeI9orB8H3/8GIzbyy8ryeyPPqqX+MciyxE8Es4E7jE4If8ImDhayUiI0VJu9v2 yt/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OkxocQs8; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si164214jat.98.2021.05.19.12.15.47; Wed, 19 May 2021 12:16:02 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=OkxocQs8; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241913AbhESFnZ (ORCPT + 99 others); Wed, 19 May 2021 01:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343600AbhESFhn (ORCPT ); Wed, 19 May 2021 01:37:43 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9E8BC061358 for ; Tue, 18 May 2021 22:35:51 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 27so7345171pgy.3 for ; Tue, 18 May 2021 22:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FmPY4Xy03mz1vCnGspPbUoX0UiPu9Hq5FqWkhs/6VR8=; b=OkxocQs8jiFzLDYlxIfCyrXZIDcleQzwTkn4Epd01nRoNJyxXOXpNesHdJPGE766XP 73r3Op2+isEhJWenPxGAQMcvwu29Go8ZtPc/N81AUCPeoSJEMij9XtCYKldLuUCLkdHI uRDcdEnV2FTvaZiHdyEQgoeA2LyNJt+SPUKb57fid7dlOy7YJckFx1qigSWd0LMoPT49 e3MczY+WqzONw81KcUB0Sgk7zgO0KkH3zFxLvoUMYrke+bbeTdhi/h9HN4gFsK5hqFjV uXiIzi2IBbCp0BaeWC0II8g3+cLV3FqkH+ccXP2nXJOsYMuPVXvkylNr+KgTIsh9TQrs P6Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FmPY4Xy03mz1vCnGspPbUoX0UiPu9Hq5FqWkhs/6VR8=; b=OBrrnSJBnb8PRopRrRId41aafaN70wzDBpgP2ONqCBb/ebqAetmQWb9EYq0WFktDEI V2WvC+UDzy4m8g2BqZ/884ABCixA+PSU+X6N3z6wCzTYhdYMCTaEkrJkkCh4BG/7aBTM 7LTOCsyG3aU4d4PQ1r9UQlhH8BR05UrL8ZJ/lqK7BDxLavDHKFHcX3Jx8IuwBRMKcMVl gyJZqefb/6nSuNxxTlGMHg5LQuJ8tOVCAcS/3xfOKc/Ivx1PETiqHo3FF9mx+fgH5cNR b7LVSqKPzp9IC3IZkgDPXGaBYcVtNZMgIpE11d27f8e7Ed5OnG9/mTTO7xiOzDANnD+9 tzbA== X-Gm-Message-State: AOAM532ZQNKqSp7izp292cyUJKQTCDb1NrWVp8iNetMtoJnZSNkpKrNb meUbA56O1+pZka8pgub+QM4mpDnocnlYjqwUKr9Pkw== X-Received: by 2002:a63:4f50:: with SMTP id p16mr9120007pgl.40.1621402551065; Tue, 18 May 2021 22:35:51 -0700 (PDT) MIME-Version: 1.0 References: <20210424004645.3950558-1-seanjc@google.com> <20210424004645.3950558-31-seanjc@google.com> In-Reply-To: <20210424004645.3950558-31-seanjc@google.com> From: Reiji Watanabe Date: Tue, 18 May 2021 22:35:35 -0700 Message-ID: Subject: Re: [PATCH 30/43] KVM: SVM: Drop redundant writes to vmcb->save.cr4 at RESET/INIT To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 23, 2021 at 5:54 PM Sean Christopherson wrote: > > Drop direct writes to vmcb->save.cr4 during vCPU RESET/INIT, as the > values being written are fully redundant with respect to > svm_set_cr4(vcpu, 0) a few lines earlier. Note, svm_set_cr4() also > correctly forces X86_CR4_PAE when NPT is disabled. > > No functional change intended. > > Signed-off-by: Sean Christopherson Reviewed-by: Reiji Watanabe