Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8624946rwl; Tue, 10 Jan 2023 16:40:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXs2O7vRr/6rs6w9LMtuavfqIBCqffsNbNFtDIzjfUAQk7ja3MJyTwUZf/5w4NCelWQAlVEL X-Received: by 2002:a05:6402:1f06:b0:46f:a6ea:202 with SMTP id b6-20020a0564021f0600b0046fa6ea0202mr75121465edb.37.1673397659684; Tue, 10 Jan 2023 16:40:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673397659; cv=none; d=google.com; s=arc-20160816; b=Hx8K/HxY4Aq2sY2SExUxbgvl4D+SOS/V1h9tF8F/RKBcof7F/UghCYoK+oIU7xD54v X8I01mvnTLUMhBkjofqgb/sJOvS34bphtSYaSrtcuPDirCm1MW0TRnZp+obcYZKih8KM pBeTkT5/tv5QCINIBkmRzOQiSM/DKFIvArnANpUaBBwxkMH72xytVxal/XwoiEe6INkn 3Q0VCIvy9v9yxPU+Q8nC9bdcL9WdbgTAypPyg3d8+Fr9Vxv8Hc11pqe0DqbUL/ADNt76 bTScQ9b3Uuqs0rK4Q/GqvhV0fORlVPUsU5gfemEwtuytBFo3mwO7t8iCUONhlfXCrF4+ 0dVg== 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=Yp3JBjB7tUuFMsajmJ3bAPYZcj+Fk8Scb4kzxl2ZOaQ=; b=fKpX7DcCHxlZaArN1ZsZEB+aKbX21xbheAsFwZ7A0ZP2/T/JLpbX1eyB52gFVGk9t3 5Ll78cYEl9fXEi1Gxr+HeTUcPklMcYAjruPeNelGa1Ssmq+LvkLsq3UJsCQJliHSDxbG JbgculVG+4VhXaKLCujwRcnmxITimlBvC4BT7neVNAR8Vh5Icwa2EaItkXzZwbEloRE5 qpDZ0LAmYGSr8p0FwXER46Otqajr9QtjzGEQV9HeK+qQPpVKHQOmEp7HHUWqEeaIaZ87 XitVtCpUuq95/n3QoX/714crripRccv5exC8yFXTu82k9d/l/s3nPHVee4fuelJ6TrZH 4d9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=CmTJCaH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020a056402249700b00499b2eb6a0csi7608969eda.348.2023.01.10.16.40.46; Tue, 10 Jan 2023 16:40:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=CmTJCaH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235589AbjAKANp (ORCPT + 55 others); Tue, 10 Jan 2023 19:13:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231265AbjAKANa (ORCPT ); Tue, 10 Jan 2023 19:13:30 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56E7A59503 for ; Tue, 10 Jan 2023 16:13:29 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id pe2so6822199qkn.1 for ; Tue, 10 Jan 2023 16:13:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Yp3JBjB7tUuFMsajmJ3bAPYZcj+Fk8Scb4kzxl2ZOaQ=; b=CmTJCaH4bg3dcVAmU2gQrctGL5VpPwS09Wz2s710hyBySidlskESG0Epja7VKd70mw 9zXcGF9bD2YGLHBVAbiNG0MtDnVvVvtN9daev7xuAgNAU4xjccHF+L94AyJPehPsx7lZ 3W9+/W2UgtfvJUO9voIHa+poavRUUCOaW004/O6LpZ7dW84d5CiLHOS7is3EC8Qg2MBw yhY6gRMTfU8KxsIZi8dkT2NHJupAUJWnFS0yRxv9+XSbzFZNh2roh4TBSYhCe7vW8U90 yQ789gW1jZgY0cFLu+xpFP9RCRT6BXehtasUYJMvbugdL9WeBvTQ9jLqQ+PC14XDIv8e GyXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Yp3JBjB7tUuFMsajmJ3bAPYZcj+Fk8Scb4kzxl2ZOaQ=; b=fMGFr0IMgfPkwcC3+6amXJYKPuQGlmJgkLP2LVsoADlxDDx8m4+E77mNaq/YIK3Lud YQkQuWGlBIvR0WZbEuLp1yMDnz3exyXaAZrfgnObKVBOnJWiDP6ZYsekVKHYkVOqBci3 xIZWazDbdm7Q0hNkH/R/PQNBuZx0593tzNHFX426Gd/ufrHIfoRkRsQAdDO7cv+6ID0t HTPhSSierNmR0sQWtRjzjzmF7ifH/8bLsRD04kDYBoK9dCXxhcMm+mj+mwfsxd+YYgQx OnRZiAyzb2EyqbetIP48T5XuIftiDdjsMFBaIjOY4WiNRLudxIAC5EEclVW1F9w3kHd/ wGCg== X-Gm-Message-State: AFqh2kqcd8kxomWPv4EZspWd6YLfsl+bKma0oZBkW2nNGAYd8NL2w/Fb U/mDSYd05y3pv4SSldyJRVjkMKLUKvB8AcFTePlZjQ== X-Received: by 2002:a05:620a:2618:b0:6ff:7e5c:a4f4 with SMTP id z24-20020a05620a261800b006ff7e5ca4f4mr2620622qko.115.1673396008293; Tue, 10 Jan 2023 16:13:28 -0800 (PST) MIME-Version: 1.0 References: <20221228192438.2835203-1-vannapurve@google.com> <20221228192438.2835203-3-vannapurve@google.com> In-Reply-To: From: Vishal Annapurve Date: Tue, 10 Jan 2023 16:13:17 -0800 Message-ID: Subject: Re: [V4 PATCH 2/4] KVM: selftests: x86: Add variables to store cpu type To: Sean Christopherson Cc: x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, pbonzini@redhat.com, shuah@kernel.org, bgardon@google.com, oupton@google.com, peterx@redhat.com, vkuznets@redhat.com, dmatlack@google.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 9, 2023 at 10:13 AM Sean Christopherson wrote: > > In shortlogs and changelogs, try to provide a synopsis of the change, not a > literal description of the change. As suggested in the previous patch, this: > > KVM: selftests: Cache host CPU vendor (AMD vs. Intel) > > is more precise (vendor instead of "cpu type") and hints at the intent (caching > the information), whereas this doesn't capture the vendor part, nor does it provide > any hint whatsoever as to (a) how the variables will be used or (b) why we want to > add variables to store > > KVM: selftests: x86: Add variables to store cpu type > > On Wed, Dec 28, 2022, Vishal Annapurve wrote: > > Add variables to hold the cpu vendor type that are initialized early > > during the selftest setup and later synced to guest vm post VM creation. > > > > These variables will be used in later patches to avoid querying CPU > > type multiple times. > > Performance is a happy bonus, it is not the main reason for caching. The main > reason for caching is so that the guest can select the native hypercall instruction > without having to make assumptions about guest vs. host CPUID information. Ack, that makes sense.