Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1339532rwb; Wed, 7 Dec 2022 11:38:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4TcRyVn+rzrHNEbz6l17UXXp5YzzGfgp3gU4mCzGHW0xB/AtsA5ITjkat89LmrJ6OEx424 X-Received: by 2002:a17:90a:e016:b0:21a:1f64:43f9 with SMTP id u22-20020a17090ae01600b0021a1f6443f9mr2148542pjy.172.1670441895882; Wed, 07 Dec 2022 11:38:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670441895; cv=none; d=google.com; s=arc-20160816; b=x7Gr62HF8u39+ARWlhSe/07jx2hDORQ53t27kVIHjgkDSe320Lr07oXVu8ImJNI4Jh R6wIjU4Dm1Smfh2GMa0TmO2AEWX+yzP24LXby97DON8FAPqnbi1wrfKSEc8OvOBVh526 8B/Xi081DqV2fkNG4A9CfDa2TzFuk0NYAnS8YV7ljSLnElxewVDy8NIs3omhYoexjK8d 3RuEAgYyBKrmfrVco0xgUsnrSKATF4u9waH6mxAR+2vGx2DYyrpKJJPYvSDiC6BKh+ij yF9vEtn2NevJXS9GQk2vRuRROw3Yk3OQnTdx6RZmahGzyNsrWlIz4J4vDKnFcjRiwCWh dAmA== 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=MIIsC5n7QdCrwcQHmEVu9CQ5CUNGyRG2niR/eVQTyw0=; b=NWqgxtTrdYExYJxT9Rh7Mc25MKv+jMZm/5z3l6o/c3/nCgdsTnrnOLZL/jbqgUg3+/ zUmaqql8l+4LSHRLXzpnvyuAQxejYtMWDeFRGMMDPk7bvVPqciiM1Xr7BWrU/B3XUlF7 9VOBqNyGZvpPWg3LX9iO+P8/EhhdAuO4HwnS1MycDapPjYQ8DfsuA4GemDxZodVMTkl4 YxeYpKcmx8lZ5FDxFdnEKGgpV9GBcXyk0SqnEJAc6k9iWV/70jzKOWiAMnyytpTEWOBm YbT6YKGG7Ig1V6CYWWBjB6ZTyplbsBjFn5TSuJSgJNrQesgFgyg7rwnjKDjZSayO6dTh S0rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=LuEPjlp2; 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 jg14-20020a17090326ce00b00189a6834dbesi20186160plb.103.2022.12.07.11.38.05; Wed, 07 Dec 2022 11:38:15 -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=LuEPjlp2; 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 S229790AbiLGTHu (ORCPT + 75 others); Wed, 7 Dec 2022 14:07:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbiLGTHq (ORCPT ); Wed, 7 Dec 2022 14:07:46 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E6622183C for ; Wed, 7 Dec 2022 11:07:43 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id v13-20020a17090a6b0d00b00219c3be9830so2614268pjj.4 for ; Wed, 07 Dec 2022 11:07:43 -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=MIIsC5n7QdCrwcQHmEVu9CQ5CUNGyRG2niR/eVQTyw0=; b=LuEPjlp29xXvhszc9RKkHf6piCKKDeFwO7yr9EzkeMEbEfs4Ha2coRFR2D9Vv/OlmW kbnv79bt+vD1NP1+Kdox9Yqctkailz5+b41kLfM7WlHSBkfsuzIUuahGyWmmty3LHgJ/ bwcKnmQA9XyR39zorh6CfHARke6VID8xDdAfVviw1MCH9mdVR9Xl2OPnDJX7gs9ZSPHq f1TT4OxX/TNVNAhZGlEsPLW6l3ZxFtfISQAlkxXeV8vmDWC6aDycJqB8jMS9pQ6w1/UW v4PmlMZ1YU3sqW7wzksCBlOkJ5b4WnPNR3VCOA1dNBdqi2el+f0n9GYJeENws/x23OW8 S1XA== 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=MIIsC5n7QdCrwcQHmEVu9CQ5CUNGyRG2niR/eVQTyw0=; b=JGREeB2yWZScP4XeIy6nNdBTMb9YFOI5KdGbSZPjhHDLpltYBtljtEI2FWjqr5+LJ+ cyetNQ1Z5Rw5CDm3Dri0Mk8EbV+fKgjIJZOu8+7FTmTrmveyp9wyDDQrprBQcg7ibue7 bF7T1rQ2EM/MFOWWrQblFhYpsg+8+qAevKSFJ6Cnf+2hJoz1ACrYJQzsO/k5do5AR/PV qXv9oxsvkU9SPSVVQ+DhRIToNnzosSKA9cJXEMEA6a4pKgcvfeQPwyz8sW8XXMATkn4S IWJv7BlsBQz8cp/2ZS+57/Rls1Dc0mhnuGxjbuD6gUsFY+71TKl294YGbTYlvzpMALYS 6/jw== X-Gm-Message-State: ANoB5pkTYbvQiCS7k4+pElfN6fkGV99SpXg6OAmm6QmND+wXr9bZqjNa cJjojcn/aUJT0eC3U/uCekYuOA== X-Received: by 2002:a05:6a20:e60e:b0:9d:b8e6:d8e5 with SMTP id my14-20020a056a20e60e00b0009db8e6d8e5mr1461920pzb.2.1670440062946; Wed, 07 Dec 2022 11:07:42 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id t16-20020a170902e85000b00189fdadef9csm645772plg.107.2022.12.07.11.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 11:07:42 -0800 (PST) Date: Wed, 7 Dec 2022 19:07:39 +0000 From: Sean Christopherson To: Borislav Petkov Cc: Alexey Kardashevskiy , kvm@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Venu Busireddy , Tony Luck , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Michael Sterritt , Michael Roth , Mario Limonciello , Ingo Molnar , Heiko Carstens , Greg Kroah-Hartman , Dave Hansen , Andrew Cooper , "Jason A. Donenfeld" , "H. Peter Anvin" Subject: Re: [PATCH kernel 3/3] x86/sev: Do not handle #VC for DR7 read/write Message-ID: References: <20221201021948.9259-1-aik@amd.com> <20221201021948.9259-4-aik@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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=ham 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 On Wed, Dec 07, 2022, Borislav Petkov wrote: > On Thu, Dec 01, 2022 at 05:38:33PM +0000, Sean Christopherson wrote: > > Probably high time to add a helper/macro to convert the SEV_STATUS to > > the SEV_FEATURES field. > > Nah, there's a couple of > > MSR_AMD64_SEV* > > defines in arch/x86/include/asm/msr-index.h. > > Bit 5 should simply be added there. Ah, yeah, that's much better.