Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp116058pxy; Tue, 4 May 2021 20:20:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2P1168GdAqwgVITYx51dyGiSPDeJ6f40XC8j4P1Kz2dk/LMZJNkzlp+gd4sTZ+PksaZZp X-Received: by 2002:a63:5910:: with SMTP id n16mr26509414pgb.351.1620184831204; Tue, 04 May 2021 20:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620184831; cv=none; d=google.com; s=arc-20160816; b=YnrqUZOPzA10TFyqy1u7KET576Aoqv0VTj+5/gxwyqnVcTMnbuir57NqXcwGmMEXZw qKd49wLe1vOh9laTLCMX6A/wkiwuav2Ep+aJ22WjvGE+q8wvKgaD4ZICLPDDm80kCD3J 7jPHtdSPvNQEiPQ1yvZzz4UtLNjd4rE3n1DloH7/DFOLvpxsfMQ8qPqhaAesZxvODJJ+ nQ4rgFDUs4LZtE/C8vjAchFjExzAMSoC3d8WoivZItSI6hnIPMB3h1maEcy9MaMQ8+ab Gnn35hiRkmWY9LZztuTlQB4z4tv+OxFlNdEwzFVGbYJLulqNKostIL+RMlm+mT7mS2hD 54hA== 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=dnt665vgiL2qf1EJoHUsRCoeU5QOH0HDsCXvJJOoGE0=; b=oSAOktdwstGkcxaj6zZLV0IGEWP/0gYQJP3VVg/KebwI6J9/z42SuKQygS4PwAnx6r u94QnQ5/VQbUNcT+b7KVveSWr5HZXsVkDo44+DzD5FSsPUfEWY8SRBmH96lKTydwHsoT RCGct8eHvEZapQun/WR+U1+ksaDDRQl9ao0zQuAOZTtx/dNbhpit5MEEIELrPjC+WZeE fGHbrDAAuY0Uho+nssdOa2t+lwbD8PGMWojbz79xb5NxMWFQ6bDxoNKA0CZFW4p0U7tl xqpxC9i0rNyhbw/TVYTsEJXD8u/oKT3twNAHv8DVCXyKraIF6ZGiAW4cCATbiAUJkLRZ 0VFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=P9TMJuT3; 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 gc1si1663495pjb.111.2021.05.04.20.20.19; Tue, 04 May 2021 20:20:31 -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=P9TMJuT3; 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 S231388AbhEEDFv (ORCPT + 99 others); Tue, 4 May 2021 23:05:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231126AbhEEDFt (ORCPT ); Tue, 4 May 2021 23:05:49 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17714C061574 for ; Tue, 4 May 2021 20:04:54 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id h11so1215163pfn.0 for ; Tue, 04 May 2021 20:04:54 -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=dnt665vgiL2qf1EJoHUsRCoeU5QOH0HDsCXvJJOoGE0=; b=P9TMJuT38F74L0PYovB9Xl2c3QeVAyOfq7OAAVkUg04WJIX5pgFE8c6RP1aly3OTqz njltVvhnKWyGlyoSo7n1Am0dOVn5JYUwM+JyLEgsY6eWCXpW2qoITx0xngAvYSYSXSy5 s2Wfm/xwToL+YTusxDF97EwARR+utxhmfKrz2C8kEkgsxqCtHwLAutF6DEQ5LvLp/Hei sLBe395Xtjd+lyiaUJRfmhjj/g0iUKceJLMrqO76DY5+fqwVNxmqCeIHlmh+RfxgVM5c GkdPck4fNTvXRU5K1ZB6rpsfs7D1qb+VKqfrHNJZcPfiiwNmU0ni+KOjw0+3ersjprKR LsiA== 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=dnt665vgiL2qf1EJoHUsRCoeU5QOH0HDsCXvJJOoGE0=; b=rtDCHEsVz2RtGwLCYZ4CD+dIfUSXHXTKQRcd449G0944i7rDmwuRaElnehTICZhR5o Wc0eKJUD+pDYWvJnD5wyodmJBPZB+oBqbaT3/TS084Ho5k1jMbBOtZsxYnNP7xjK3xrs Zw4z3U0B2zA9I1d+8rF6gMEzZHD0byBXwPA860L7dqFO60LDBcR+EBXFyAhZ1YwO4jU+ 8dkOAgJksLbMELlMcmwHeXzX3rnqzTY8wqOsOB+kEF/PRM+0juvcFxbAL8D8Z20YRej1 gr/ycNnJNZA1DgXNPz2fDIuZJJJtKM3Gi7iko85A0Yu0OhCPI6nsqEY7ACFqF243QkYJ u23A== X-Gm-Message-State: AOAM532l5KEPavtotWwQObpsaYSnkOyw8kO9V0J/2HRIYgUEy4zLQ8AU 3HuiSTzD7Im2wa99Ao6BP01iX6glAbZ7cUZzl+wCOQ== X-Received: by 2002:aa7:8c59:0:b029:28e:9093:cd4d with SMTP id e25-20020aa78c590000b029028e9093cd4dmr13659040pfd.25.1620183893345; Tue, 04 May 2021 20:04:53 -0700 (PDT) MIME-Version: 1.0 References: <20210504171734.1434054-1-seanjc@google.com> <20210504171734.1434054-2-seanjc@google.com> In-Reply-To: <20210504171734.1434054-2-seanjc@google.com> From: Reiji Watanabe Date: Tue, 4 May 2021 20:04:36 -0700 Message-ID: Subject: Re: [PATCH 01/15] KVM: VMX: Do not adverise RDPID if ENABLE_RDTSCP control is unsupported To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Xiaoyao Li Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 4, 2021 at 10:17 AM Sean Christopherson wrote: > > Clear KVM's RDPID capability if the ENABLE_RDTSCP secondary exec control is > unsupported. Despite being enumerated in a separate CPUID flag, RDPID is > bundled under the same VMCS control as RDTSCP and will #UD in VMX non-root > if ENABLE_RDTSCP is not enabled. > > Fixes: 41cd02c6f7f6 ("kvm: x86: Expose RDPID in KVM_GET_SUPPORTED_CPUID") > Cc: stable@vger.kernel.org > Signed-off-by: Sean Christopherson Reviewed-by: Reiji Watanabe