Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4880247pxy; Tue, 27 Apr 2021 15:01:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGzoU07eS3QG2TT0GTV34RznTjc+V1Ke7VgfE8RDjbnTi0HR2XVzTSRjKkSHDDEjA4FAEZ X-Received: by 2002:a05:6a00:1a4e:b029:279:3f74:8c56 with SMTP id h14-20020a056a001a4eb02902793f748c56mr8147470pfv.19.1619560870308; Tue, 27 Apr 2021 15:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619560870; cv=none; d=google.com; s=arc-20160816; b=ebDC7+LURLbsm/5VOr/zvq01wEVpCmY1hL7kHmbCQryv0TY7ZchPr8z4En0rH3zEZV n+4gdwEcQISi3XICKvNa4az8fV1Tx15ZeePsWLjLKquM9dIhnxoMAzauAu69NwpXI9VA KeHPafgMQWk1+V+Bt+010QTPeiRA8S21H7lmHzeeVHSD2SJ1CiS2D1CCHeX3s7gIXw5Y Gt+yngZ+qM9S5FSS2zG8twsSKE8geG+30coY7GPb4TGifVfnnqp+1GNTjpv+pBh9Qk9Q +fxU09fJeNtp+MN6QV2qbosPLT/JzEiYmLrhpSb4PKB+BEkiX+dese8jErOQ89MsbnJZ 9Z5A== 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=GM2oAi1eIassl2KE9QEB2DIOW4+0ysif8RFRhM2xzYI=; b=EmMsy05aHip37WXn7Aq6h4036+6CJ94LZIO/DNyNpGWIyD7CtoRmzwIlkVMCOhzvoh xBu+oC0RqbUlYZw9dAoXGY3FZa7HdlSEi4G7l8ezecA4+OqrID9f0cx9lvqQ1Zm2HTAF dMR+tRSmtziqX8znI7xviECGG2Yf1+JfRWagvGcp7ismBH95lGMjYlj6T3fSXSCKLfvz tbytcUpifBEZpVctdFSkxh2APg4EXSaMWOczrq1YP0+wM4Ujee0WaF6wW2zeV6wsZQhL X36Q6kKeCSnPLMx3NRBDR/94/aZzBIwyGf66DvBUFub/8tgnLV/k2XZqxH3OM/1MNW69 /r/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="WG/aZBu2"; 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 e7si1175709pgs.95.2021.04.27.15.00.55; Tue, 27 Apr 2021 15:01:10 -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="WG/aZBu2"; 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 S239449AbhD0V7Z (ORCPT + 99 others); Tue, 27 Apr 2021 17:59:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239424AbhD0V7Q (ORCPT ); Tue, 27 Apr 2021 17:59:16 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32CDEC061574 for ; Tue, 27 Apr 2021 14:58:31 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id 20so27704638pll.7 for ; Tue, 27 Apr 2021 14:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GM2oAi1eIassl2KE9QEB2DIOW4+0ysif8RFRhM2xzYI=; b=WG/aZBu2xYsBYP0PTRaptVMtN/fcTuR7BD/9Op2YIBWgCClIBBhHij0fZI/Cb8p2M8 B/vSq/QWoue5+UrK/zKcotuDhJqw/g203QjwVTfNJtgi0pJ5HOGjzAXGmcHdKkMa2iS0 olq9RVpkYDR51A55tjTQXTaOEauSqSiZZJ5LeyZsc9xcOCqryq9ZBHtv9CUhApCy2Op5 sZyhYk4anVC5X0xu5CE43QB6ZHtNJlQHV9bHIDEC7dK463503lZQkHfBt+XQHTCG1vpa /cUlv2iwHrTYDCXXfDtiqbZERz5udd9/Q8UumEhpHcThFv38Z4f3b4aog5RC98KCnLjU 3qmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GM2oAi1eIassl2KE9QEB2DIOW4+0ysif8RFRhM2xzYI=; b=i+RQ8vpPkpoamxdxmMk4OxRVOQzEFtcI1Cbad0XxtwTWFLRQ1AeY0X1VjbNUUljUzs V/aw5nSg9NCCVsJlMQ+MVHSvN6rBo3KwjVd+KessKzd1a7PVAMGw2/+g1RO3KPpc2N/z Q/C90VvmsD4ovoLqU/1DhzlwNGDZhpMM5HnW/lBxpnoc1sSsD6TRSSaY1gJiZXWveKJL iQiEsnd30jnGdKbeRxayKyDqkLLzdGG/KCW00kh+xKXmR2x/danuC5B6bmMHUNCQQest w88f8kbwzLM+6CH3UvobuDy4x6+ayafyv2GJKbRjbH+OqeyDXZvdyjfV2Pb2hwuQAYA9 TmOw== X-Gm-Message-State: AOAM532jIVucJFVkPszOt1M2n2pGuqXsoL3rAzS2cnQft4ZFmT4d/+dR sq1Quly7U32O6qYm134FFp9TVQ== X-Received: by 2002:a17:90b:4c8b:: with SMTP id my11mr388997pjb.201.1619560710674; Tue, 27 Apr 2021 14:58:30 -0700 (PDT) Received: from google.com (240.111.247.35.bc.googleusercontent.com. [35.247.111.240]) by smtp.gmail.com with ESMTPSA id 14sm2682634pfv.33.2021.04.27.14.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Apr 2021 14:58:30 -0700 (PDT) Date: Tue, 27 Apr 2021 21:58:26 +0000 From: Sean Christopherson To: Reiji Watanabe Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/4] KVM: x86: Tie Intel and AMD behavior for MSR_TSC_AUX to guest CPU model Message-ID: References: <20210423223404.3860547-1-seanjc@google.com> <20210423223404.3860547-4-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021, Reiji Watanabe wrote: > > There is also a kernel bug lurking; vgetcpu_cpu_init() doesn't check > > X86_FEATURE_RDPID and will fail to initialize MSR_TSC_AUX if RDPID is supported > > but RDTSCP is not, and __getcpu() uses RDPID. I'll verify that's broken and > > send a patch for that one too. > > I don't find vgetcpu_cpu_init() or __getcpu() in > https://github.com/torvalds/linux. > I would assume you meant setup_getcpu() and vdso_read_cpunode() instead (?). Ya, I was looking at an old kernel when I typed that up. Bug is still there though :-)