From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1730DC433ED for ; Wed, 19 May 2021 05:42:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DFB80611BF for ; Wed, 19 May 2021 05:42:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344675AbhESFna (ORCPT ); Wed, 19 May 2021 01:43:30 -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-Google-Smtp-Source: ABdhPJznqJrnHceWhb+AT65ATLb4YfGUnN87XFrP/ow7TIXe1KT4/2agJYx4IKqcZ+z2A6dWGC7xjv5mG/2mmdhnqjg= 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