Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp416847rdb; Mon, 15 Jan 2024 01:10:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDUWFn488VD2tLdYQ9dRVbQwRsyPO1Akvf6Q2zdUDHn9drZnRDlTgds9zP+Ej+zov+DF7R X-Received: by 2002:a25:d6c2:0:b0:db7:dacf:3fbd with SMTP id n185-20020a25d6c2000000b00db7dacf3fbdmr2131880ybg.106.1705309840771; Mon, 15 Jan 2024 01:10:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705309840; cv=none; d=google.com; s=arc-20160816; b=Orl/9iiWAdiEzaZNRqLuJ3RCszD8SSE8hK5vd7PsJwxBI79pYZM1edBRK7E4AH6nTg LuVvA/j7zWjQ+sGt81pkY5YYnSSlMrOb4LACBP8WUJUAjgKlKpDIpcDA87SanocksYAZ 34Nme5Ld/3kPC/qqq6x/M8SRkXGjc2ssb3ygo4JDENNq354wrqdU+nRVYk2UpFyR5no4 tYIxnodRSXUxgkDjYuxzzKYGJyP8BIBWZqNACL66TYTJAetrUTQvaZNhLyRvMmCBon6e bhfSsA6mpM+LLSGulw7bLXKS8juUpvMNYn8MN+P/rg+FCON+Ibz+U+/WBUw5YwpaBvLf 69+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gJlM2Kv3+3MOq/kI/Vq1T5vWHhg6n3QBRVvBSciq/WM=; fh=6a9PepjYPtqgN8L96ODPIB95Rh5QIoJ9i8sA2LfxtjA=; b=qFK1nGLsb98+1jnSJrfyfSx1ub95nQsIfP9jT5wrBdElx1BpU+ohAjyOO/I0iwspQe vfSkig4QS0826dlpfO2fgYdw+0wOePFGKvFkb92rX2DK8tU/xsRVxunvrfZlIJs7lmut Vlv+YOCAHfWt36In1h27w6JS82qKVwQhs8A8tI5akQeuNs7U9XmKyoUm/E9wtLH7p0XA 8BsaRbGxVyJcZY35izS7LbAA7yoXzAN/BrBbJvDWnUQsjVPraKuE5igOTPb51eTNecmy CJcLILHEkWBopj7vmEyfukpv1LVlgxPccCYjsjo4MTMcCFE6M5n0gNWADuZKqzMiYfhk Ds2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=AJiodlRV; spf=pass (google.com: domain of linux-crypto+bounces-1424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f14-20020a05622a104e00b00429f1571becsi1254022qte.418.2024.01.15.01.10.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 01:10:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=AJiodlRV; spf=pass (google.com: domain of linux-crypto+bounces-1424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 856FC1C2145F for ; Mon, 15 Jan 2024 09:10:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B266C134; Mon, 15 Jan 2024 09:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="AJiodlRV" X-Original-To: linux-crypto@vger.kernel.org Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B8A7C123; Mon, 15 Jan 2024 09:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id AB29140E016C; Mon, 15 Jan 2024 09:10:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id TTazglQcC3xF; Mon, 15 Jan 2024 09:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1705309828; bh=gJlM2Kv3+3MOq/kI/Vq1T5vWHhg6n3QBRVvBSciq/WM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AJiodlRVfuq8IL4OHlBKxL2GoRaWKRVgTApjGmeEVcOopb1jey77jYuYcnHjEG9hs 9Y8JDPi12IdkJPFc+u7c3MyF3w7JwGPoC/KXy/hBMFRXJ00bxOISgsBXHUajYBBLvF YvT7l8r/nlQJ2LgbjsCMBpM8SmuW4PQaKpCIayRZLnL++k5HEBKilYQicld0Hj/gNB 4loDnAwYb+gG0CL7YDj8ZQza5lRVHGc2gS0z6fBJJ06T0A1Yz2yC8TUZ3k8nZNorc/ TEDMrEy6lvqrCL3GLTa9UBnnSKggfQHTvuT3bHIvPiagueLZZXxsQRKd168I2jZwXo CrUnOK96Qir8twcfZB06NaDJo6R4tELtpgqGbp3Gc3+NzObAC2Pqig+mTcLvNnvtni kxZEiAZ1fKxZYf3EDox8h8rzVKhv117TmBbrs0RJ6XXbhDVelisPjjr8tVBNnogcaK 5rpcvQ4Fay4l29JWGGPtemJ4xPUmk9zF2GHN2/8wsvDel0Akf6mNo+YR32A9fm2wyn AV1XWM13uhGnhx37NHy8a9rP7EV68Xl8Cb/vJTH9jABr1FHEbiaYv/OeKN0X/afP5e IoDyKqdaQQ+vq0/cKkkqoegLmw1PCWjliSOOTlBDWh2KOqkmjDpdOy+OlU96hBOgL6 UfeeTNaMV22VtaRAJThDiia4= Received: from zn.tnic (pd9530f8c.dip0.t-ipconnect.de [217.83.15.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A643940E01A9; Mon, 15 Jan 2024 09:09:49 +0000 (UTC) Date: Mon, 15 Jan 2024 10:09:48 +0100 From: Borislav Petkov To: Dave Hansen Cc: Michael Roth , x86@kernel.org, kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, jroedel@suse.de, thomas.lendacky@amd.com, hpa@zytor.com, ardb@kernel.org, pbonzini@redhat.com, seanjc@google.com, vkuznets@redhat.com, jmattson@google.com, luto@kernel.org, dave.hansen@linux.intel.com, slp@redhat.com, pgonda@google.com, peterz@infradead.org, srinivas.pandruvada@linux.intel.com, rientjes@google.com, tobin@ibm.com, vbabka@suse.cz, kirill@shutemov.name, ak@linux.intel.com, tony.luck@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, alpergun@google.com, jarkko@kernel.org, ashish.kalra@amd.com, nikunj.dadhania@amd.com, pankaj.gupta@amd.com, liam.merwick@oracle.com, zhi.a.wang@intel.com, Brijesh Singh Subject: Re: [PATCH v1 11/26] x86/sev: Invalidate pages from the direct map when adding them to the RMP table Message-ID: <20240115090948.GBZaT2XKw00PokD-WJ@fat_crate.local> References: <20231230161954.569267-1-michael.roth@amd.com> <20231230161954.569267-12-michael.roth@amd.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Fri, Jan 12, 2024 at 12:00:01PM -0800, Dave Hansen wrote: > I thought we agreed long ago to just demote the whole direct map to 4k > on kernels that might need to act as SEV-SNP hosts. That should be step > one and this can be discussed as an optimization later. Do we have a link to that agreement somewhere? I'd like to read why we agreed. And looking at Mike's talk: https://lwn.net/Articles/931406/ - what do we wanna do in general with the direct map granularity? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette