Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5292504rdb; Wed, 13 Dec 2023 04:56:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJrhx0wW3UNVEQ3caPXQjXCFcYY8itaTJnYQDjN+pGOVbIX3KaJ3jBLizg8/TFqmJoARlt X-Received: by 2002:a17:903:2285:b0:1d0:6ffd:cecc with SMTP id b5-20020a170903228500b001d06ffdceccmr4795984plh.133.1702472207975; Wed, 13 Dec 2023 04:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702472207; cv=none; d=google.com; s=arc-20160816; b=ZmNiKuQlLmlYXoNK6+v4NKc4cfxP889yJqA23N+XJk5K1Np80PbXZNn0WFC2LeCWnK mbep2rd56O9vLViPg67y+pL7PoP9bbKt8FNUWh5zTo0BLdkRHa+1fnMREZg/9//O/eP4 mIwXKLedW0GJnkaqgY6pw4qeoS4QPe3pVwPB9cM9G/4yLX3InziSYLYsxBa6q6bcBwUA TtXAyqWfiOKtGruMgUQcalx5NK1yf6QZsuI+xi8J5zpEjuMGd8IFyQHGTNgU6QPvBvDO KEiUgDStoIdtIJDOiC7+pBovtNWe9oWSkxNgD6ENJMFlmHxqyZaGULb+cNBlPw6Ihboy 6rZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=/HKVzQBbabQNbbp244Nm1fQjMKsvbXnOSOSucUClLDQ=; fh=FoOmbRvtfbRO6QMIOsGvBTzeTLGnZijN4NrP+UT2gx0=; b=Chvksk8cVc7icWp1INcWS1Siw1lGkVXmE/qDYzO9lWtp42/otNbZ5U1d+OHKfPh0nZ eHLtaX25SY09lGSx/9g6Q3SpX4A81rfRi+ME3edj4SW3U1SAoQV+HBsIeSOyOnioq05e 11cgn+/2VG7OQnv/ZvZ1w5iSxJn1F6r4/kDoWXaDcKUOjocX95NfMRe3ANukw1HTN2Mi XFY+GDFb1PjPsuUlt9/CPsu858UZa1qAIuaVYZFd01WI7mK3C5XO6SCSsg97Mex/Q60H /Ya+JyjvZo5RzblBAzXS+NDXr+1FxXZw/B7hEoyjEdbrHrJuAZSS7tLoNurFVtmHq6bq tPPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="G/erz0pg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id e12-20020a170902ed8c00b001d33c7ff093si2432606plj.585.2023.12.13.04.56.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 04:56:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="G/erz0pg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 75E6A807C74F; Wed, 13 Dec 2023 04:56:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379035AbjLMMzd (ORCPT + 99 others); Wed, 13 Dec 2023 07:55:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379054AbjLMMzN (ORCPT ); Wed, 13 Dec 2023 07:55:13 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B94C18E for ; Wed, 13 Dec 2023 04:55:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702472103; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=/HKVzQBbabQNbbp244Nm1fQjMKsvbXnOSOSucUClLDQ=; b=G/erz0pg0fwlTgcYJ4OA88kNCgDUWm+4Dx+nIDXmIZXdw9irG/hGea0H+CcK9nx61AAHpa zJlqROCZRp5BaQpknD+h3Jw54XME0tfwUBmRs7Pi3/ZK/qFzzY3RifUwTPIScARTP1kjk2 xkjbgW1qtQ2zb7+j+2NU2pKzUw2FWo8= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-41-dv_c7_MnMki3YGOSOkERSQ-1; Wed, 13 Dec 2023 07:55:00 -0500 X-MC-Unique: dv_c7_MnMki3YGOSOkERSQ-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-40c1d2b1559so48184795e9.3 for ; Wed, 13 Dec 2023 04:55:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702472099; x=1703076899; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/HKVzQBbabQNbbp244Nm1fQjMKsvbXnOSOSucUClLDQ=; b=hsNhGsjL4Kxypv+4yu7gEZWbKYclW+tE6erXZ5Q74DJFiYXZz2khaWIxBZsBJ+x4GP T2C9zzuzBonk9GQSt8ndBafR4N+iYNrccz3ldmPreX5/YwGBIgfNwv2NA1L1Rz26bTkn d9AFcBcw6VU9xkIs7CzR2cUQN34OMCF78idLEUiCwjyUMOyIpS07hZfw/ce0PGogxiKd 8mXUYqTY9aqKZfCsF7qQMeJ3mYaWspjHaJwtVDLGtdGQLy75/xRQ9thx+T0nDwTqc1Jl BCewQ/Bjw9KtLdJdVAyiFVtAMr+Tz9MJapoX3QAgy/BPTh0AN6hbnxYbbNpJtHJQC7iF jGPQ== X-Gm-Message-State: AOJu0Yy/zo53tnQ5J6FWpJAXCjaYNo+H/3+lmgk6GBib8yzpIqIe//Nv IJsIBK2omwGDi+tIhe1JaGVeDe0qEZLid7OsQFIcjlCAavVdkQ+LfcoDsbw7anzNGSn5iuKks8b bzQeBFuOIyBCBZXI6p5JJnYLG X-Received: by 2002:a7b:c4d0:0:b0:40b:5e59:c57d with SMTP id g16-20020a7bc4d0000000b0040b5e59c57dmr4246953wmk.167.1702472099276; Wed, 13 Dec 2023 04:54:59 -0800 (PST) X-Received: by 2002:a7b:c4d0:0:b0:40b:5e59:c57d with SMTP id g16-20020a7bc4d0000000b0040b5e59c57dmr4246915wmk.167.1702472098919; Wed, 13 Dec 2023 04:54:58 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:63a7:c72e:ea0e:6045? ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.googlemail.com with ESMTPSA id f9-20020a05600c154900b0040c4be1af17sm8858371wmg.21.2023.12.13.04.54.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Dec 2023 04:54:58 -0800 (PST) Message-ID: Date: Wed, 13 Dec 2023 13:54:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 20/50] KVM: SEV: Select CONFIG_KVM_SW_PROTECTED_VM when CONFIG_KVM_AMD_SEV=y Content-Language: en-US To: Michael Roth , kvm@vger.kernel.org Cc: 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, 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, dovmurik@linux.ibm.com, tobin@ibm.com, bp@alien8.de, 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, jarkko@kernel.org, ashish.kalra@amd.com, nikunj.dadhania@amd.com, pankaj.gupta@amd.com, liam.merwick@oracle.com, zhi.a.wang@intel.com References: <20231016132819.1002933-1-michael.roth@amd.com> <20231016132819.1002933-21-michael.roth@amd.com> From: Paolo Bonzini Autocrypt: addr=pbonzini@redhat.com; keydata= xsEhBFRCcBIBDqDGsz4K0zZun3jh+U6Z9wNGLKQ0kSFyjN38gMqU1SfP+TUNQepFHb/Gc0E2 CxXPkIBTvYY+ZPkoTh5xF9oS1jqI8iRLzouzF8yXs3QjQIZ2SfuCxSVwlV65jotcjD2FTN04 hVopm9llFijNZpVIOGUTqzM4U55sdsCcZUluWM6x4HSOdw5F5Utxfp1wOjD/v92Lrax0hjiX DResHSt48q+8FrZzY+AUbkUS+Jm34qjswdrgsC5uxeVcLkBgWLmov2kMaMROT0YmFY6A3m1S P/kXmHDXxhe23gKb3dgwxUTpENDBGcfEzrzilWueOeUWiOcWuFOed/C3SyijBx3Av/lbCsHU Vx6pMycNTdzU1BuAroB+Y3mNEuW56Yd44jlInzG2UOwt9XjjdKkJZ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nYUCCL77bucx9uImI5nX24PIlqT+zasVEEVGSRF m8dgkcJDB7Tps0IkNrUi4yof3B3shR+vMY3i3Ip0e41zKx0CvlAhMOo6otaHmcxr35sWq1Jk tLkbn3wG+fPQCVudJJECvVQ//UAthSSEklA50QtD2sBkmQ14ZryEyTHQ+E42K3j2IUmOLriF dNr9NvE1QGmGyIcbw2NIVEBOK/GWxkS5+dmxM2iD4Jdaf2nSn3jlHjEXoPwpMs0KZsgdU0pP JQzMUMwmB1wM8JxovFlPYrhNT9MAEQEAAcLBMwQYAQIACQUCVEJx7gIbDAAKCRB+FRAMzTZp sadRDqCctLmYICZu4GSnie4lKXl+HqlLanpVMOoFNnWs9oRP47MbE2wv8OaYh5pNR9VVgyhD OG0AU7oidG36OeUlrFDTfnPYYSF/mPCxHttosyt8O5kabxnIPv2URuAxDByz+iVbL+RjKaGM GDph56ZTswlx75nZVtIukqzLAQ5fa8OALSGum0cFi4ptZUOhDNz1onz61klD6z3MODi0sBZN Aj6guB2L/+2ZwElZEeRBERRd/uommlYuToAXfNRdUwrwl9gRMiA0WSyTb190zneRRDfpSK5d usXnM/O+kr3Dm+Ui+UioPf6wgbn3T0o6I5BhVhs4h4hWmIW7iNhPjX1iybXfmb1gAFfjtHfL xRUr64svXpyfJMScIQtBAm0ihWPltXkyITA92ngCmPdHa6M1hMh4RDX+Jf1fiWubzp1voAg0 JBrdmNZSQDz0iKmSrx8xkoXYfA3bgtFN8WJH2xgFL28XnqY4M6dLhJwV3z08tPSRqYFm4NMP dRsn0/7oymhneL8RthIvjDDQ5ktUjMe8LtHr70OZE/TT88qvEdhiIVUogHdo4qBrk41+gGQh b906Dudw5YhTJFU3nC6bbF2nrLlB4C/XSiH76ZvqzV0Z/cAMBo5NF/w= In-Reply-To: <20231016132819.1002933-21-michael.roth@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Dec 2023 04:56:45 -0800 (PST) On 10/16/23 15:27, Michael Roth wrote: > SEV-SNP relies on the restricted/protected memory support to run guests, > so make sure to enable that support with the > CONFIG_KVM_SW_PROTECTED_VM build option. > > Signed-off-by: Michael Roth > --- Why select KVM_SW_PROTECTED_VM and not KVM_GENERIC_PRIVATE_MEM? Paolo