Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1720563pxj; Wed, 19 May 2021 12:17:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoWRR3Jdplt8r0Y73CNbBWVXeYddyszvZVk3vU9nonM52pzPvjAGoMBFTfHzzz3bT/kffW X-Received: by 2002:aa7:db90:: with SMTP id u16mr646939edt.106.1621451848475; Wed, 19 May 2021 12:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451848; cv=none; d=google.com; s=arc-20160816; b=rhhpop8p10AXSGSLwHdtcsDD/+DwniH593FdF/qh36albrxLMbsBbwjUK3CoDf5agg nKeMGYHnNGSqAVOobMQdpCJvR96CETluFX/upL6SsDx1j07CxoE6u62QUfEaMbbBu2Et ewYSwF2eko8/G2w3V09pKkHysybgbTqRJKAK2zBIv5r6mi8daLXn250ytgFPu/XQft4e ukCGX/aBn4KtM8waihkWmK28oFfciVV9Wrl0BSxoXfI+Ny5pDFR6lMsW6Dp/+yI6fUFN PMOvI1q9TV0HpcZXIXIs1TOhEGEMN4oA/+hO3zeePYVgjbs6N1bRe1/LC7Cb9S+MpTJl KWLQ== 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=PF0Q9frtyuRcpG5BnVwblhIE9pTcOMwFzNkIPovg6ss=; b=oRCVy1Mmgf2EiMlBYC2+w/w8leW+FYbcyWsQ1S32azFxueiYVej6U9IWQZCLjUspAG FDbpVvdw9Qu2VqQ8/qdxoPl6d0P2k0i5Vx20U1z18yXy8SkwyUp6e/SFtOHalQFESoUm BH+RuJzYIdFr0tSlmdGTt6pq8ELG5mcVGePZlq238I0yFmz21uNTA1PSryqd92Ww5Cey 9mLcB/850XYrEx6vAFbSvKemc7THUDkbEeX8tUAvNnIaHGSetLdHstrf73EEbU2LZR3+ CIzmTX0EVrSTGTl64weNlwPKpX2UpnS9vvk7YH3KttIsot/adtpA3ky+IpTsdp8jUxdU f2eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fPntYKFr; 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 e7si87436edk.255.2021.05.19.12.17.03; Wed, 19 May 2021 12:17:28 -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=fPntYKFr; 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 S244721AbhESFoH (ORCPT + 99 others); Wed, 19 May 2021 01:44:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345541AbhESFjS (ORCPT ); Wed, 19 May 2021 01:39:18 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6C99C061344 for ; Tue, 18 May 2021 22:36:11 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id h20-20020a17090aa894b029015db8f3969eso2201673pjq.3 for ; Tue, 18 May 2021 22:36:11 -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=PF0Q9frtyuRcpG5BnVwblhIE9pTcOMwFzNkIPovg6ss=; b=fPntYKFrfOpVF5bsRxvyNYfSvgwcRiEFZauBnsgNc714SkShf+0dbqLl8QmDVYhrfH kgwFCSECHlKHRwVGCGHNvDDajtJHW6W6k8EZC8hvEZvwBw1Vt3CfRqFKSdty1pmnyJcC KHODAHZ3o/KfJGHNlrUR94dVV1ocjzG8NjPuf5CgVUVe37K4DALkP+uky+FyubR0mDxq 7yudjjySKl1FF/foqnvQEba2Ra/eGdaMvVhmiAiWI9J8J2D8Gx1C0hNwm7XrAgrMX40p qN+i412QPwTL4OoOYS1g5p4JhO/9/zfIJfzb60IpMxup9jLBi649xfCzE+n9y77tfJvf MV7w== 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=PF0Q9frtyuRcpG5BnVwblhIE9pTcOMwFzNkIPovg6ss=; b=GS2vZsej8TbfuUjNbqbMt/MCI9k0aWLxKEyuJs6aPnkE0rndAivJJ/9NE69CMpXDid /V6JWPKHT92jrcPWj3Pwu16a1DyhU8MMBgAOL/e3azh4gOuHJla0+tf2QOZXE+KToXVj maAMFywzF7dFfwC6NEjzVNPyMTw6XSHMFRAzaVqKqSrryLhiKoj6dRyRxxCP/9LyTvC4 fxfFFmE1sCFby5H+nYRRLfyKM0ZbQhajr7O1HQb0r/hj0Y4E8/tMkybis/O4qhjtiliw 0Z5KKkUJ/eTbd1gpdpgXIWj9pKOtd3BUJXC+Z+Ye9tZsAJlrDp1q9r9CxBiIzMd2cUr3 lDPg== X-Gm-Message-State: AOAM530IGzDL64G3c7jVq2jkQTK0AXYiP8dEo1ltEKDuBFLh52bQVuNa 4uweg4g4Wo5oFgG4i0QIVdbQt9o6SG4ebYqsTjRulg== X-Received: by 2002:a17:90b:1185:: with SMTP id gk5mr5791984pjb.168.1621402571226; Tue, 18 May 2021 22:36:11 -0700 (PDT) MIME-Version: 1.0 References: <20210424004645.3950558-1-seanjc@google.com> <20210424004645.3950558-34-seanjc@google.com> In-Reply-To: <20210424004645.3950558-34-seanjc@google.com> From: Reiji Watanabe Date: Tue, 18 May 2021 22:35:55 -0700 Message-ID: Subject: Re: [PATCH 33/43] KVM: VMX: Refresh list of user return MSRs after setting guest CPUID 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:55 PM Sean Christopherson wrote: > > After a CPUID update, refresh the list of user return MSRs that are > loaded into hardware when running the vCPU. This is necessary to handle > the oddball case where userspace exposes X86_FEATURE_RDTSCP to the guest > after the vCPU is running. > > Fixes: 0023ef39dc35 ("kvm: vmx: Set IA32_TSC_AUX for legacy mode guests") > Fixes: 4e47c7a6d714 ("KVM: VMX: Add instruction rdtscp support for guest") > Signed-off-by: Sean Christopherson Reviewed-by: Reiji Watanabe