Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp974129rwb; Fri, 13 Jan 2023 06:29:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXupFKVddWppwD1j9Dz7FjGlnWPlexC7OwPXJcDlSSOy9Jz93YQ4X9ekhSJEXkpZ7DfGOEZJ X-Received: by 2002:a17:90a:4401:b0:21d:6327:ab6 with SMTP id s1-20020a17090a440100b0021d63270ab6mr79851563pjg.1.1673620181880; Fri, 13 Jan 2023 06:29:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673620181; cv=none; d=google.com; s=arc-20160816; b=Y800c21kDs7E0YQDA4D9IZ00OsmJhwF822g8+OX8hSZqwko48X6Xd7O/6mnmu0C33Y 0OmvpYrSupzUbf/jaeLJpm8Wr1bZx11Hh5o4jwlps88Cgq83QRdQAPgsW2gA/O2ZrNxW gwMPdybsk52Q2qMSv57suviYjsLzn1exeOdDW1Xc4o3p2Cc6yH55on6e3H6B9QRl6c8m ut21A71s9QdxlHckepi4R/N14AlYv/t3xJ8clvhMwhi7Q5coRaTtARYpQ4iBIypx/Qlf t/AW+XpnIMebEMMExIsHNZV39SnAQot55dNtPBAjqCW20rmngVhpZIw8Y3mYiqnjyE87 JVow== 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=XYtqfhZKFK7PaSqp9fuWWHAp6AYDAbDdbgbeeBoQDPw=; b=fFucf9ceIPCAq1suVvOV3iJyGgDffcTQSK1vD2+PPM0B6ebJB4Z2h993f/3WOCsu7D Cy1oEVp3jvqqcFLFGm3GAIimsSLrcT4F4RwGn5Mbdgljq0/aOUg/lPw+NTtjXpxt4IZX oH5sRe1Sl165y2hTK1aUSoHXuE3RE3d1AF1cshx/w9xEosG0yv2+uiLfGDZmzmpBjoTh d0cmVZCpBGy+/mCupB3x/NU2kT4KAFLT50woQ7h/DPmvN3JBn3cMGrFXYAaeuxjNAwYm flnY/UD+v1OkzKGoLgIjyMctKV+5aopBVLUlqm+cVcTMdo0vFcxEkYr0aSepEs/PTM4N CrCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=nYmdzgEu; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b0043c5d3dc0d4si23089971pgh.332.2023.01.13.06.29.22; Fri, 13 Jan 2023 06:29:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=@alien8.de header.s=dkim header.b=nYmdzgEu; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S229528AbjAMOZh (ORCPT + 99 others); Fri, 13 Jan 2023 09:25:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231470AbjAMOYU (ORCPT ); Fri, 13 Jan 2023 09:24:20 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 706F710FDF; Fri, 13 Jan 2023 06:16:54 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (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 5D5741EC04C1; Fri, 13 Jan 2023 15:16:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1673619410; 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=XYtqfhZKFK7PaSqp9fuWWHAp6AYDAbDdbgbeeBoQDPw=; b=nYmdzgEuSjI5cCOeBGcx/PixXKD2yIek0jfY+hJjIFI4n5nwUrIuJrZNqewFOMW0YJBonI cV9hqB9im51KA+msRMViQta8N3rmOPw5Gz0A4II5943TZ4R6nBUmwJZn3noP2dPeST1jHp Pa1jJq/Qg1X5pvW7g+YHyx0RaQ4O4Rk= Date: Fri, 13 Jan 2023 15:16:46 +0100 From: Borislav Petkov To: Michael Roth Cc: kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, x86@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, wanpengli@tencent.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, dovmurik@linux.ibm.com, tobin@ibm.com, vbabka@suse.cz, kirill@shutemov.name, ak@linux.intel.com, tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com, alpergun@google.com, dgilbert@redhat.com, jarkko@kernel.org, ashish.kalra@amd.com, harald@profian.com, Nikunj A Dadhania , chao.p.peng@linux.intel.com Subject: Re: [PATCH RFC v7 03/64] KVM: SVM: Advertise private memory support to KVM Message-ID: References: <20221214194056.161492-1-michael.roth@amd.com> <20221214194056.161492-4-michael.roth@amd.com> <20230105021419.rs23nfq44rv64tsd@amd.com> <20230105181741.q6mq37gvcjk5nbjg@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230105181741.q6mq37gvcjk5nbjg@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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-crypto@vger.kernel.org On Thu, Jan 05, 2023 at 12:17:41PM -0600, Michael Roth wrote: > In the case of SEV, it would still be up to userspace whether or not it > actually wants to make use of UPM functionality like KVM_SET_MEMORY_ATTRIBUTES > and private memslots. Otherwise, to maintain backward-compatibility, > userspace can do things as it has always done and continue running SEV without > relying on private memslots/KVM_SET_MEMORY_ATTRIBUTES or any of the new ioctls. > > For SNP however it is required that userspace uses/implements UPM > functionality. Makes sense to me. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette