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 B65A8C4708D for ; Wed, 7 Dec 2022 19:01:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229573AbiLGTBa (ORCPT ); Wed, 7 Dec 2022 14:01:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbiLGTB1 (ORCPT ); Wed, 7 Dec 2022 14:01:27 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B6BD5C77E; Wed, 7 Dec 2022 11:01:26 -0800 (PST) Received: from zn.tnic (p200300ea9733e711329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e711:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 02D641EC0426; Wed, 7 Dec 2022 20:01:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1670439685; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=P0I63OKAkNvlCHVBHDusHlnXPJvApvb5Iv1GJcbPNSQ=; b=OV6L3hD4mH3kTw7kFP+s0H+6SGGjOIQQYoNoTrRj0LRHUjmXnK3XdwQ2tvqGXqUzkbw7fU kz4EinJjOaixVyxG7GPq8mM1+f8REYU6s0dKw7bvxsQA2b3udvGV4Q9yJkZh1fBoyahemk oZR1qEBP3EYxDuyxfs/ykmJD5U9rnNk= Date: Wed, 7 Dec 2022 20:01:24 +0100 From: Borislav Petkov To: Sean Christopherson 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=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette