From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBBD9C352A1 for ; Wed, 7 Dec 2022 19:07:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229733AbiLGTHt (ORCPT ); Wed, 7 Dec 2022 14:07:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbiLGTHq (ORCPT ); Wed, 7 Dec 2022 14:07:46 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F2D13E084 for ; Wed, 7 Dec 2022 11:07:43 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id v13-20020a17090a6b0d00b00219c3be9830so2614267pjj.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=3+0ahnDTV/4Qil3cFg4GiZ2qrhQya/56fnHQQNWPbnBboyKctxHNgicgQOwPs4IUPV KvHvpn+6JxKNjirPZkOmhDsiAhVAXOmyKSaI8FQcVCsoseeQSqocGm3Hr0FjtDVhWKZ1 LR4WUvDxbefS6kXCA5U77iVt4YcKsnIJoyEFshuYFCv9qHa+kJiZFzPj0y5LLS8ASAAv aUnoa+hAfa/KH4G99Ubpgr+5HBDBKfwNHhDxaf2hlKZWxK6DzhdtweBzsxu8iOfYehQY BouLWLl2Rm5IhedjMNX7iwc+9AxIbSJBqO2sowPWXhqi956i9R/Pi2mUb+3UlnD7F9W7 UcVQ== X-Gm-Message-State: ANoB5pnp6nDlLBnCY3vE95lDzJRKof3x88zhE02El9rBbAMQfWvOIrZN 6vlhW3xo3X3Vly3yZVIasYyQkg== X-Google-Smtp-Source: AA0mqf55MWjxuHrH3IT7R8UFXI80tu1WDPZA5MI0p/jv2F4oxIFUeP9djV9/MtxqV/qX/TVXvxz/Yw== 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: Precedence: bulk List-ID: X-Mailing-List: kvm@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.