Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6618851rwl; Mon, 9 Jan 2023 10:36:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXtDy9N1ymsEpTXgel5ejwuI7OVGR6HWsfbGCiN34ZIj2PME6nBZLyLL7zSe2TN1F0tKtdN3 X-Received: by 2002:a05:6402:3985:b0:467:9976:2e38 with SMTP id fk5-20020a056402398500b0046799762e38mr61143749edb.18.1673289404877; Mon, 09 Jan 2023 10:36:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673289404; cv=none; d=google.com; s=arc-20160816; b=wcvZ5pKDFXnLgo75lkA95T5/0xMTzMd0KEQZLs3+zrhuuP79j6s9uMFjhBLiaaml9v 3XtAEZNPOLTwxWBnGXpXvWG0p71ttrhk+RMdNx1d8PBIHwNt3J3Qn9V1GhOteA+S1EFs XwuEdssFqB4XXASpDz7CLf2oitGppgNYWRgfDLaN4WftZIy5sGR+2+izZeaU2EbNY/lb 3UXKPFKwwtXrGwLqcmoFeFk00lVlOOr03OUzYFBPN70m8BaYOI1QCwo7SzLEMpDygU/a 6H7o5ZuaoJHrl2a6GpYC2SbBKT+dFd4u9Ree8vrKU8OVGl4Eb2wYXlb659RUiYBpo1TD Zl/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Lpn7ULQKJRqA1WM0tl+JngZoSM5Eptcl4R1Du6qoFI4=; b=uNShtihW8aJI2/AJ7HusOlp/ba9jmVogkE7yIwHWTweGKT6PJUuRGSlSCV4vkhFn/2 BMbwb5SJqqqJvCTGxjMv4echgtoXQMGmSVa9lSFS6iYXAh5hYz6eum5NhCIkTNTpx1W+ QZHUb9a1E3BntgHSvV7XvAd9qLxlyYbMfAwZs7yNiAvahy8Gs5ZzyvaX0ckz87sioFh8 E0zeib/FVBkGCsCaHf2vpOSR+C1iT1XwjANe8XtPIXA01wV4KUIO6Qw95Ms6cZAGUn18 ol9SuZtj8l9Gt1P2/4DsJ3pF/z4+73l1xeNNqZlwIAVPni8Ff6/neE+7dOe1nJg9UVVA MWUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=AKN88fz1; 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 c20-20020a05640227d400b0046b2840ca3dsi11447417ede.474.2023.01.09.10.36.32; Mon, 09 Jan 2023 10:36:44 -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=AKN88fz1; 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 S237186AbjAISRi (ORCPT + 53 others); Mon, 9 Jan 2023 13:17:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234676AbjAISRE (ORCPT ); Mon, 9 Jan 2023 13:17:04 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 857E97FED9 for ; Mon, 9 Jan 2023 10:13:05 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id 20so1379152pfu.13 for ; Mon, 09 Jan 2023 10:13:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Lpn7ULQKJRqA1WM0tl+JngZoSM5Eptcl4R1Du6qoFI4=; b=AKN88fz1MiNhQ6ouB3BqRSNX7WRkDgF0tCX0XphKDMLbqHyhd6bv57i4iwXJZuPYM4 yngwuoJCvJdVD0bi+itrlOheBlmNUA2w740CjP7T7cfg8J7sJWGWDUgS5EDlGSdkWbE+ OgSn0CvLy3GKdnj8LOgsjyzqlxc04zc4QxsY1irNTx3WlvJo5iiroQPUHwpaoPxZs0oj a2cHGVXtnL+MDWF5ONxUn9bUireONe2jrN3aSY/a5+o14bLrKG4X07Ka5X08lkYMgwHR l99hXqTB/S4q+t1d2ZvRB+oUhmGysXIZWC8qr9sHmbEckp500IVfnt13Q0iMJVn7jrYQ U0jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Lpn7ULQKJRqA1WM0tl+JngZoSM5Eptcl4R1Du6qoFI4=; b=y5AyoF7IBjbFOp1rsvqGG2VtykcEgn7I3AMglrskIULKU07Y+bSOnQ5tkdHwd0TEoy pb+STH9KH6BaK8SQQaYEd+rITTYwzNpA7Mnqd82mfLJnd0kNC1NjvOSqeuSAxY/7IfjL TjxNPeDUAhGB5vTDBlQ92492Ry2oad7Q6hX2FUM4hEA3bBhGucTz+P2yzlQfooPrrOoB lW4sxAqRuNec7LmyUi+tj0QxaJe2tE9dk/Vv66A9oVebojPdZ46k/ZRVjtlbFgQi1qxP Ug5fpB7EVF/wDJDERJqE34ixNclkEmV62B9XB16Qc5/5NzfkQWhPVHiMTFhbT0pxMLrT UVSA== X-Gm-Message-State: AFqh2krQk+BPgX3Z6tmry7OwgdOMhWALkgF729mEwnQsaxxgubgEp65f zop/EUSmYbD3KdTZBLHebP9F9w== X-Received: by 2002:a05:6a00:1948:b0:581:bfac:7a52 with SMTP id s8-20020a056a00194800b00581bfac7a52mr704444pfk.1.1673287984757; Mon, 09 Jan 2023 10:13:04 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id b29-20020a62a11d000000b005769ccca18csm6321096pff.85.2023.01.09.10.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 10:13:04 -0800 (PST) Date: Mon, 9 Jan 2023 18:13:00 +0000 From: Sean Christopherson To: Vishal Annapurve 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 Subject: Re: [V4 PATCH 2/4] KVM: selftests: x86: Add variables to store cpu type Message-ID: References: <20221228192438.2835203-1-vannapurve@google.com> <20221228192438.2835203-3-vannapurve@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221228192438.2835203-3-vannapurve@google.com> 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=unavailable 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 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.