Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4240205pxv; Mon, 19 Jul 2021 21:39:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylbFYm08AhYxdTR/Rt291pUrHNphKL9ufAORR4zKqprUo28r/5CT6Z49SQc+x5HZ+wrPz3 X-Received: by 2002:a05:6e02:1d0e:: with SMTP id i14mr18016054ila.50.1626755951866; Mon, 19 Jul 2021 21:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626755951; cv=none; d=google.com; s=arc-20160816; b=iVYX4PDmHDpsoQjkHFJ+8Qf9kHudEGPHuRuy9mJUDPSMf0l9Q8vDEvf2mSAMUpLq9E IdUz8/nkfLK5gmtSwpToTDHHHK8gUz/jsBsGmSna2mNoh4bY4DSP7dDxmB78D9ADvUnB 8FVcD6jItg1RRt2rvSTFcJzM8LKjBT+v2EX9hwiLdFlTGJ20HC83ugUye8QzDuzckecx 68DrlnZv6kxN01wYZst0NdVecM+/tTc7bnZNdNEvdlqkwdLyezzGDUZgeaLpGlWttHVX Tfev0paeN4qUBhS4XQkQv+nYrz2lQ1+eotKN4d2WmAullOLetLCt8XFBiBdiTtrLIHkH 1KwA== 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=BbJ5l/mzifntQdZgcoAMozoV8xnurm7BXOSvdrIxbhg=; b=Hy5VP0dHHhuk3CiLwr4KQ8QYgdipDSusL2qMCsnMO/M1MNNhjRxZxAj0U1gPP9df6m SYazeI0rG5EPa/0LXUnoRoRVdEnC4x5rh0mG/YLkEZ96UBEOpANaV1I/HQ9fdtFOahN7 MvwWRA0RzJoISptWC7mzeyAtI6TV7+Sg9PEnzTKYKPaOPAWZrmWjTwJ4mzFXjf6CMXcj 1Hn10WQRu9aOfven2tteAJSLZfTyaUPbwbhlmW6g4h8/EO9Kzw/GYSSd5LLwoJl2vrIt qC48T7GLRaREB4qzpcThEE5MNIxCPWf818YRtGc6vw0zI23FLB2/Rot1Z6qti4Y7AyYp CIow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mq949U1s; 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 q3si11275609iob.0.2021.07.19.21.39.00; Mon, 19 Jul 2021 21:39:11 -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=mq949U1s; 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 S244939AbhGTD4e (ORCPT + 99 others); Mon, 19 Jul 2021 23:56:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239282AbhGTD43 (ORCPT ); Mon, 19 Jul 2021 23:56:29 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7402C061574 for ; Mon, 19 Jul 2021 21:37:04 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id gx2so1905025pjb.5 for ; Mon, 19 Jul 2021 21:37:04 -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=BbJ5l/mzifntQdZgcoAMozoV8xnurm7BXOSvdrIxbhg=; b=mq949U1s2+kAYZI0X3lgUoNXTGjhIZkrl7UOL0sPaK2QLJ/i/YLoHlNHs/Kasexq9o aonmjdVagasMfgKQ7UHxzTrkrwCiIIsnXbg9DfmeDxLkHUkV37XBWcNWfZj0Swx9vqWi ELkbuloc5D29K6er/zFevAbSakKTLFOqO24nHFIql+8yx+A8Wn06QH0MMn3AeD2dL+nb /IXgREyPLNTEf7yoCCZ3ltix3nR2xw2/zeoNg6ioFHOxGt5XBwvD1Kk0pA2IqKJUo75O 23yfUcc9Eu7N1aV1wduxNTFPcCd6d70zGzujjMQMG3URPmmx+2KUYp+U0Z7mcdzLYXl6 iBhA== 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=BbJ5l/mzifntQdZgcoAMozoV8xnurm7BXOSvdrIxbhg=; b=LmPXKzHr9FeMFbfNW4cXRxL4px8D0NF1AnkiQQ/P1IJYdyWd70HgVAh/lvKEzc5KwT vSmR7Ezdlxuveq5pM6+Zdh4B6a5A6i1oOlDxPrkSmLvSCu5omjdaaAzI/fDOCVqCJd2g ZU14NYTyiCG+cZLzS2g+WsleGTGFbOWeFNPdfj2UUMkW06PuOcu3CollFDyONpLbR++F nDTA1mGWNTId4IfbQFy8+MzaZIsPbQacL/pk3Jngq1hIVVZ/LmSfRJrM6bnft1+NAzr0 evq/HUaf4OllTegiQH9z/znfCVFL7zL9ED8X5mVEjeonMeq5wgq4nAG3VJHjyrmsDyhm YWQg== X-Gm-Message-State: AOAM532pKAEHKT/orJwi9nNLQD4Uh2gD250n6epoBOYmD7pijMuBUFfe b6Su+DrrEGPH4Y4CrpKAY0ySNqdKQeAisxWw72VeQw== X-Received: by 2002:a17:902:8484:b029:101:7016:fb7b with SMTP id c4-20020a1709028484b02901017016fb7bmr21740363plo.23.1626755824154; Mon, 19 Jul 2021 21:37:04 -0700 (PDT) MIME-Version: 1.0 References: <20210713163324.627647-1-seanjc@google.com> <20210713163324.627647-46-seanjc@google.com> In-Reply-To: <20210713163324.627647-46-seanjc@google.com> From: Reiji Watanabe Date: Mon, 19 Jul 2021 21:36:48 -0700 Message-ID: Subject: Re: [PATCH v2 45/46] KVM: SVM: Drop redundant clearing of vcpu->arch.hflags at INIT/RESET 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 Tue, Jul 13, 2021 at 9:35 AM Sean Christopherson wrote: > > Drop redundant clears of vcpu->arch.hflags in init_vmcb() now that > init_vmcb() is invoked only through kvm_vcpu_reset(), which always clears > hflags. And of course, the second clearing in init_vmcb() was always > redundant. > > Suggested-by: Reiji Watanabe > Signed-off-by: Sean Christopherson Reviewed-by: Reiji Watanabe Thank you for removing the redundant code. Regards, Reiji