Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2177807pxb; Mon, 18 Jan 2021 10:12:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwA/QMvnEGyo+YvVaSgVbBfvxq1Jqv4FzyYk1sJD9LopmmwBP93qfs5SgxyxY7/1L1t2IfO X-Received: by 2002:a50:8b02:: with SMTP id l2mr527792edl.322.1610993542018; Mon, 18 Jan 2021 10:12:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610993542; cv=none; d=google.com; s=arc-20160816; b=cUGCcUKBVvVJL5qzzS15Lv86cBO2FGRu+8UgZM3QJgbwomIEXhtZLBO8+yiiV1rII+ i0uJ6V/qzR/n96UfyXcKYJVFg8BkXoPRk+/ilIV8mRKcZW/dkHWk1Az21f0ztUknRmkk 9ju+M5s6YEIGny9JsXtomkZ7Qvp67NOrl+hc40Pu8ksKvrQiFEZw8JaT8KyoCb0T1cgB mOWRr25569lMer6K6nP8muw/SJlDSO09LXlIXisJWe16/oT1NQbQRumy+Zc3H+TXrT71 Rvyquw3ajIZ66vFMeMtUuXOFqoBppRHpoamOivi9au/RnTu9yu5d0Uve1z0RwZWpVLRw i2RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=T2HNFh4tGmunTdtcHPmXNaPVbvrJW2x+rSByPsYMLmg=; b=K87i74OWfiNeWQL+qZGgeXsuSCZkKt+O8pMR6DeEIR3hiPwHZfrGv5aflCDMs8mOoz F3ikIg7z4wuHNGVOLCFJLbeDVguCmEY0zjaUxdQ7gaRXRooVRW5qhl9XQoTj5AYW44A1 5CTqXo691YYQRJ38mb361vDOY8j+YxfI4UhUj61nwyXFRQI8HTvDO/ywtRxhoQ5mtJJu nV0/y27nBveJMOG1CitYm1mpYXxtAsiyK4bVH93ue4KN0/KiH4QUlv4Ie1rBy/Nn476k /oVYCg9CstcRwgfIfc+xiMhoPNXXm5kYvTHboXHE2uXSkaCjuTppJFYQB2fUwuZoL+w3 lWzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ietSSJ+f; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si7782630eja.97.2021.01.18.10.11.58; Mon, 18 Jan 2021 10:12:22 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=ietSSJ+f; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436737AbhARSJj (ORCPT + 99 others); Mon, 18 Jan 2021 13:09:39 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:53891 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407429AbhARSBU (ORCPT ); Mon, 18 Jan 2021 13:01:20 -0500 X-Greylist: delayed 85154 seconds by postgrey-1.27 at vger.kernel.org; Mon, 18 Jan 2021 13:01:19 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610992789; 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; bh=T2HNFh4tGmunTdtcHPmXNaPVbvrJW2x+rSByPsYMLmg=; b=ietSSJ+fcEHBt0sG2hixiLjlM0XY87lFomWIMynGGq9fsB7aRF9jm5NdaJxQNfQVyjdvPJ xs5mZPDOXf3dvmUe6k1W7LFL2hE9187FRNPjrFVZpaV5Nyd39qG3knZVEm+hVxXVvYHxuq iH0nkQjoyiqlSCXwDM0uwTpUW13d+Q0= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-4-QxxzPROtPLKYNzGI9P4tag-1; Mon, 18 Jan 2021 12:59:47 -0500 X-MC-Unique: QxxzPROtPLKYNzGI9P4tag-1 Received: by mail-ed1-f71.google.com with SMTP id n18so8154722eds.2 for ; Mon, 18 Jan 2021 09:59:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=T2HNFh4tGmunTdtcHPmXNaPVbvrJW2x+rSByPsYMLmg=; b=i03xT8hyx14ZLP+zi2PmQqx4y1vOgk8ST0c9y84dX4vTANFdwj9V8InSnQ1IsfHGEX vZhsAXTeMJPuqkEy6pbkMpT5iM6wHsY7TehvmZMfl8DjI/OuJTUHUnNF6eQrCMIj3WLW NBQ9aLfg6xOzgRwqteFuK+URPql8CiIA93V5jRudj+lgJyBeH6YT3mGYsartxlYcDe4x +wpkvztRBXuZx3Hdo7ShSADJl242jK7mUZfHQ58Us0DfE/CbV/TK9vSLLXFLG6iw+L6d RUQWuLn8B+xeozwG2cbsLWbU3SfECweLLzAkLQCdRzm/PrqanzNDlZD0NUHLYAKAV3fb AcKQ== X-Gm-Message-State: AOAM532SCXgyf5Ej7NpCb6r1xyzb1G6OJU8uMxXVNanCIcitMfnUZm/Z yf6Msx12NqLn7xuR7EWXr9UbIag80mlv2Ldj8lszNfjNwXh15Sojslv1tHkL+Kir/40km7AbYWa LGz2Whizb8Z15o3MLa7KTARU1 X-Received: by 2002:a05:6402:3510:: with SMTP id b16mr486886edd.242.1610992786136; Mon, 18 Jan 2021 09:59:46 -0800 (PST) X-Received: by 2002:a05:6402:3510:: with SMTP id b16mr486870edd.242.1610992785978; Mon, 18 Jan 2021 09:59:45 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id he38sm9395037ejc.96.2021.01.18.09.59.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jan 2021 09:59:45 -0800 (PST) Subject: Re: [PATCH] x86/sev: Add AMD_SEV_ES_GUEST Kconfig for including SEV-ES support To: Sean Christopherson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Andy Lutomirski , Dave Hansen , Peter Zijlstra Cc: "H. Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Tom Lendacky , Brijesh Singh References: <20210116002517.548769-1-seanjc@google.com> From: Paolo Bonzini Message-ID: Date: Mon, 18 Jan 2021 18:59:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210116002517.548769-1-seanjc@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/01/21 01:25, Sean Christopherson wrote: > > @@ -1527,12 +1527,14 @@ config AMD_MEM_ENCRYPT > select DYNAMIC_PHYSICAL_MASK > select ARCH_USE_MEMREMAP_PROT > select ARCH_HAS_FORCE_DMA_UNENCRYPTED > - select INSTRUCTION_DECODER > help > Say yes to enable support for the encryption of system memory. > This requires an AMD processor that supports Secure Memory > Encryption (SME). > > + This also enables support for running as a Secure Encrypted > + Virtualization (SEV) guest. > + > config AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT > bool "Activate AMD Secure Memory Encryption (SME) by default" > default y > @@ -1547,6 +1549,15 @@ config AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT > If set to N, then the encryption of system memory can be > activated with the mem_encrypt=on command line option. > > +config AMD_SEV_ES_GUEST > + bool "AMD Secure Encrypted Virtualization - Encrypted State (SEV-ES) Guest support" > + depends on AMD_MEM_ENCRYPT > + select INSTRUCTION_DECODER > + help > + Enable support for running as a Secure Encrypted Virtualization - > + Encrypted State (SEV-ES) Guest. This enables SEV-ES boot protocol > + changes, #VC handling, SEV-ES specific hypercalls, etc... > + Queued, thanks. Paolo