Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4625511pxb; Tue, 31 Aug 2021 09:24:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqdOjk0fSfAbeLjf26cIrmSLVpbtsU/3m8PxspOyCu0Bz/JJnO1o2ehmc2hwKg1DqiEo2y X-Received: by 2002:a17:906:1856:: with SMTP id w22mr31070563eje.393.1630427075364; Tue, 31 Aug 2021 09:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630427075; cv=none; d=google.com; s=arc-20160816; b=Q9qeSjkEzemFf3awAtZL7bo5nJUIJ9cVX0vcNRDoUhOm5mXREuBMqHiIFxutuTWk6/ 7GD0LXCDcVw49jdc8EU7/jiVZRE5xCekOwjNNICNfXl59b9tjiAgSwSnkUpwGd+WfS9s YnDubyJqseaIcsEUdAmPM/80Yt+K+a/N9x6lF60bHdDa+N6seY2tiDssw00rXA1YzVll NefhIJwJfhp8cWBx052hs0ss+qLljkS7+sDt34xmnUNOViGsUkSc31jnLJgXGKdrOtgj oWCFLV3JD/Xi9D3KBs21ycBsTXlYIyJnnFAnX+rqwrKw4OPlbzUhhQI55mdOgHHgiPxb It/Q== 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=pJLc4Nr2FSbY+5utp8zq0cqJuoQnIBsw2l3U+d3olSs=; b=Gl2pv9YVyeBxkL+OLeu3ja3TYfe0wjO8YvlrtGpvCwBaEDHHCspt2yaHbkZo5Tg+PD wZUssZYUT1CcsLMHkw+v5idRM/FzIKmROGfZniddzlhTjHxZIcrA1jew5ly6q6ASzMHt uj/O97X6+BpJdz+2YDlhJ9huzJufN4b6kPkuAy0hqbS2lZL9XaE43c1xzB6RYLIRc8nn Okvu8tyPKLS1XsTJ2d5qmDbZbTdjBRVSDBqZyURR/12zrHcbMjnuY//NbD6JNzm4b32o TvADhwDZkE1HA3I8qqnP9Ms8598DhWCQwJr4ttCIlKJcbJbf56Q5Vn1GZCMV5UHphmv5 p74A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=OG2MmH57; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs15si4713031ejc.20.2021.08.31.09.24.06; Tue, 31 Aug 2021 09:24:35 -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=@alien8.de header.s=dkim header.b=OG2MmH57; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239977AbhHaQXL (ORCPT + 99 others); Tue, 31 Aug 2021 12:23:11 -0400 Received: from mail.skyhub.de ([5.9.137.197]:50868 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239733AbhHaQXK (ORCPT ); Tue, 31 Aug 2021 12:23:10 -0400 Received: from zn.tnic (p200300ec2f0f2f00fdddcaa5e3f9e694.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:2f00:fddd:caa5:e3f9:e694]) (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 53D851EC01B5; Tue, 31 Aug 2021 18:22:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1630426929; 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=pJLc4Nr2FSbY+5utp8zq0cqJuoQnIBsw2l3U+d3olSs=; b=OG2MmH57Xx0+9u8ejAjkuvOP+tpM08VxofHGL0MJDMGrKoMdpsPtFuWCKWBH3KhkdjY5dR q04iSVWqzy2Mb06ywIkrzyJ5B5weBNc36UQmvjpJ6W6e412ErBjN16s9Q7SaeuWeoRm2Jc puWQRQUhEU3pSfl/bw2Jv4OLgnedFsQ= Date: Tue, 31 Aug 2021 18:22:44 +0200 From: Borislav Petkov To: Michael Roth Cc: Brijesh Singh , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, Thomas Gleixner , Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Andy Lutomirski , Dave Hansen , Sergio Lopez , Peter Gonda , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH Part1 v5 32/38] x86/sev: enable SEV-SNP-validated CPUID in #VC handlers Message-ID: References: <20210820151933.22401-1-brijesh.singh@amd.com> <20210820151933.22401-33-brijesh.singh@amd.com> <20210827183240.f7zvo3ujkeohmlrt@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210827183240.f7zvo3ujkeohmlrt@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 27, 2021 at 01:32:40PM -0500, Michael Roth wrote: > If the memory is allocated in boot/compressed/mem_encrypt.S, wouldn't > kernel proper still need to create a static buffer for its copy? Just like the other variables like sme_me_mask etc that file allocates at the bottom. Or do you have a better idea? > Would that be a reasonable approach for v6? I don't like the ifdeffery one bit, TBH. I guess you should split it and have a boot/compressed page and a kernel proper one and keep 'em separate. That should make everything nice and clean at the cost of 2*4K which is nothing nowadays. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette