Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp848785pxy; Fri, 30 Apr 2021 18:52:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwal5Fi6mNVc7OYhRIyslPsd52D4a3Rt53XwR0C5RQwMC9J6ymfHyrNgsQwnLowKxpxRAFr X-Received: by 2002:a17:90a:9f44:: with SMTP id q4mr17806046pjv.233.1619833954910; Fri, 30 Apr 2021 18:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619833954; cv=none; d=google.com; s=arc-20160816; b=H/JXThqgE6OZXZ84wl4PMlAOsGP3Zt8pgM5M1X+N7b+RKL0Ti30lFDd6qiYCIdqOAT SV4HYDrneBaRMwHaueG3Rjok/lpscQFGntZP47VAaDMIzg4GnzwkZUOgc5RWfod0aFo+ Mf3NzdgwqW4qpkDjbcT+g3zeWkHj9/fgsKWJdc7HOo/o/HRYL8jzAkLhttbDQitJNcD7 h6CqWI73wKThPOrE6yzEAMSk2ZNHV3GcUqTXhxUNuTtm91RwFvmnypqdlEVUTYCZPVyb 4Q3hQ9RZZ9lY+0DXzC7wFVUupsmCcYsozZA/RFffSkmd0AqW2qVO2Hpj7OqEhJU+fYrl Vbtg== 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=ozd6VF4VBSI5hJlHvANgfOYMt6KOui3CNQPSfuNTfQ8=; b=ElEqgJn8YiLXE51AVGHNgMlr/MoloTOOTBBsub3G4dEc9RlBwTUujHzxZVHIogBE+A tzjckgYsThC/heHaeBfFYttS8wPynZEzgSE8bH0ushOOzuUS69JjdEBVtvx4LK3YnX3Z M96BDj/lQJSR1EiPTXuw9+uE37Er7a0GrgavXp735Z2XI2MP81BCPEMDWCh7sEzFf59D CrhZC7nyLD6JDeq2iF04jmcd8B2ShGFUowUGBEwVosJI251EVj1+DuyBr1zAFlPsMb/Y cPdkbvUzCoGyBfLZ24BqE1Pmg/mcB+rbOwenvnLFkUVgs3aVPn+q8fmETmDrY89A8lnd 5mOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=b+JDT3AW; 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 m6si5586965pga.387.2021.04.30.18.52.22; Fri, 30 Apr 2021 18:52:34 -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=b+JDT3AW; 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 S231416AbhEABvd (ORCPT + 99 others); Fri, 30 Apr 2021 21:51:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230508AbhEABvc (ORCPT ); Fri, 30 Apr 2021 21:51:32 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCFEEC06174A for ; Fri, 30 Apr 2021 18:50:42 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id 10so369281pfl.1 for ; Fri, 30 Apr 2021 18:50:42 -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=ozd6VF4VBSI5hJlHvANgfOYMt6KOui3CNQPSfuNTfQ8=; b=b+JDT3AWwu9N0GRp5QhVwxqHKUG78K+dd+wSEbWugHxKKnwu3m1yiL+Gsp6Ljf4iKb JMR/EO2vlaN7r4EMQMmJ+uvLlo1dGDZZD1vk/c+S5KKC5UvyQ6ZhuIdQwK6EfkDJIh0U ShmOUstjS2MMSweHvXYV+UgNKxjleveEecH9qInlFICsUAK5KFSoth9Zw7fu5uMLnMkQ gIGS6t5N7uo6V9kCntttT49ngYKMamBWkS0CYdW7F8DB1ZbpnMIVj/Z0ZfomUDDz8BE2 F8QLNZJd0hys1dWa5ILcTW1ndM4uPsnW3ez0LxoThRt7oLcS3QYbs6VLIxNdzGOmp8qL Qn6A== 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=ozd6VF4VBSI5hJlHvANgfOYMt6KOui3CNQPSfuNTfQ8=; b=DPAJGO7FKCY3xDYmj3Z9VgyR3ptCDjMe/TrZtziYPB/Tt9VpG58DKt/sB46FcnzwvA H1MJ8LreDWRpOAeLGF5MUhIwTBjFbPIEdcblMu/mb0u54fXuw+CW0jw8p6ECwlt1uUTs bOGTU6eEGNeROzVpUsGgfFjK1+zmfSpRKkCHtgBE1dhvN/4evPRGKgfx6H5iTmfWyku3 pOkUxu+T6PGrF6oh2zFUC9fmYHKXQu9dSJnMJxSV852zEiXvy3oDJN01iYdfvAdlDLgg ch1C2ptTNaMlNt9zKIX2Z/qY/840FTkZYArF6kvbsEX9Gk5I4nVy/Ol6LsBFRM7zg4bk YIQQ== X-Gm-Message-State: AOAM532y5CFgiVwcuUwyUyy8OD6CC1EAhtn/Ixl76vj6dCQvHgUUrF4B pfYkW1eBTo7OPgBBR/MrA734kNkd5try2A8iIxrRhw== X-Received: by 2002:a63:a1d:: with SMTP id 29mr7324748pgk.271.1619833842289; Fri, 30 Apr 2021 18:50:42 -0700 (PDT) MIME-Version: 1.0 References: <20210430131733.192414-1-rsaripal@amd.com> <20210430131733.192414-2-rsaripal@amd.com> In-Reply-To: From: Reiji Watanabe Date: Fri, 30 Apr 2021 18:50:26 -0700 Message-ID: Subject: Re: [PATCH v4 1/1] x86/cpufeatures: Implement Predictive Store Forwarding control. To: "Saripalli, RK" Cc: linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, Borislav Petkov , hpa@zytor.com, Jonathan Corbet , bsd@redhat.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Considering KVM/virtualization for a CPU that has X86_FEATURE_PSFD > > but no other existing feature with MSR_IA32_SPEC_CTRL, if a host > > doesn't enable PSFD with the new parameter, the host doesn't have > > X86_FEATURE_MSR_SPEC_CTRL. Then, it would be a problem if its > > guests want to use PSFD looking at x86_virt_spec_ctrl(). > > (I'm not sure how you will change your previous KVM patch though) > > Reiji, you are correct that X86_FEATURE_MSR_SPEC_CTRL should be enabled so KVM guests can use PSFD > even if host does not use it. > I have this change in my KVM patch. Thank you for the response. Yes, that sounds good. Thanks, Reiji