Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2259748pxb; Mon, 18 Jan 2021 12:37:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyU5D5Z+zYWHpnRzw4OnohPQQxftlzshxzQlhfKmGGX2k5NlSlh1E4/RvqCyCA5pfi3UVK7 X-Received: by 2002:a05:6402:18f:: with SMTP id r15mr899867edv.189.1611002263079; Mon, 18 Jan 2021 12:37:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611002263; cv=none; d=google.com; s=arc-20160816; b=CbNnNWDfuEG7qRIgCXsHywRxgj6d7PuOC2kkeYzn3Y4s3ezZrKnmkgFNP+a0y38pzU RzAxAwcIOZYzvfTmFQc59AipsZebjLlh+8Pdl6Hd3yS7JlVwpUmkNHc3X6w8rX6O5uTj ltDvCoks/QaX70NXgsu0XIODuFJCzwbEOQxut3oB4duhmVCGv3On75oE1GATW3QaefOX 19078UPwOIdOpIhujDc9hyC87A4+gVr2+kM3l76FBuD9X/Iy6ikRuRdDLRpLqnB5zYzy tMTfTKv4b2iq4MKtqQTfaLHs+hfdxYCXRHwhDbFhAMHzaOmyFFpMo59CH/sb68FhFGw6 Zn0g== 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=yqbvFErNC41ofhFoCIqH0jJ0VT1UHbY55ftD8sHsSmY=; b=PxvNALcFTVPcp4Lc4e2S8dTZylr+uAgq9R5yffJtDZoU4yWG5wWYZTI/5eA03ftpdC Xse07XsI7YpclEQLojbFE96W7tgpc7zVgrY3XTiPz4Yh51NzKXpGox9G8ETYFzwdxpaz mICJoIjFFzF125P680xT5JeSBAt0A1FGF40CMiqhdxN0ujwaWLPd3jf2/fSjkaH8zctG IWRbDvDvTQhGek7ZBtLCuq8GcJWk+2Hg4N34ldJX8xSTtyrm+cc91+nWE0d3wGF1+0Tm 2iguUZE23Z5n/yvkYtZ53obeahvbJybk24R/e0OFbIYlFGd5HKXMrTXhwcr/8h28rvjW DZaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GJPqvvfJ; 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 g3si3344833ejd.595.2021.01.18.12.37.16; Mon, 18 Jan 2021 12:37:43 -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=GJPqvvfJ; 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 S2388828AbhARUc4 (ORCPT + 99 others); Mon, 18 Jan 2021 15:32:56 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:54218 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728333AbhARUcI (ORCPT ); Mon, 18 Jan 2021 15:32:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611001841; 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=yqbvFErNC41ofhFoCIqH0jJ0VT1UHbY55ftD8sHsSmY=; b=GJPqvvfJS9PeRZjALbxpiEJmxL1qrJ0Lvyb3qqsnqAuhlpr7AGawqzar/2eoZKGIZcCLqG dUvWL719SdduX1OeWZvmCrVicQg7ClaJ0lJHJ3lujJKRz8xmDG/ZOLQpzSgcSm60MLLG1l 5mRGQ1+O89UExil0ckkSzGtnBXxs2Qg= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-351-GrhyNGU-OWeaQZ11vqrUgw-1; Mon, 18 Jan 2021 15:30:39 -0500 X-MC-Unique: GrhyNGU-OWeaQZ11vqrUgw-1 Received: by mail-ed1-f69.google.com with SMTP id y6so6433695edc.17 for ; Mon, 18 Jan 2021 12:30:38 -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=yqbvFErNC41ofhFoCIqH0jJ0VT1UHbY55ftD8sHsSmY=; b=Hv6xuPL/kG8MXyJ6wumQkxQbb5jALAxsxifmL+08rlnmv5AzPVd3KwKTw9peJ1Ja3V n3GGznKuiDrsyD48fYY7aKANQv9Iv52S0N0wW4HDruaZNG7+ycclVLIQ51KrvJh/sYcV A+2nyY5NxRnjW+j34l9kWemnY12lwAa744J1LwSS/UqOF7WWAeQCHJ4oruriorG+d6hs xLGQlPkNEeVd01D2m1M93MNKoLydwWHhdi0QOdxhVDXzK7OA/fUIInFYKY/AQC0GTVf/ L2wuS+gPF3cxvmQ9meSVaXTbdwCu2eaqP8Jwh3P8iRES7p1cI313rJMUdsXRSiechc8z ZLmw== X-Gm-Message-State: AOAM530kY7rTt4z6vvyzxBIyyUCpciQfHXbmSXJBkjxg/w03rgiQvvTN L+O9nJvfCCEm7Q1fMHFhHcqeWWpDAvr5f6waPZ4KeZe3eJ6a6rQqIa0E1lnFfUUNRPGLaSmO+Ye 3rhtKOc2FmjXlQPU8UL4vxnvP X-Received: by 2002:a17:906:f988:: with SMTP id li8mr953191ejb.84.1611001837771; Mon, 18 Jan 2021 12:30:37 -0800 (PST) X-Received: by 2002:a17:906:f988:: with SMTP id li8mr953172ejb.84.1611001837533; Mon, 18 Jan 2021 12:30:37 -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 a22sm8077675edv.67.2021.01.18.12.30.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jan 2021 12:30:36 -0800 (PST) Subject: Re: [PATCH] x86/sev: Add AMD_SEV_ES_GUEST Kconfig for including SEV-ES support To: Borislav Petkov Cc: Sean Christopherson , Thomas Gleixner , Ingo Molnar , x86@kernel.org, Andy Lutomirski , Dave Hansen , Peter Zijlstra , "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> <20210118202611.GH30090@zn.tnic> From: Paolo Bonzini Message-ID: <2262feb0-830e-1e05-d81b-031d54cf6853@redhat.com> Date: Mon, 18 Jan 2021 21:30:35 +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: <20210118202611.GH30090@zn.tnic> 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 18/01/21 21:26, Borislav Petkov wrote: > On Mon, Jan 18, 2021 at 06:59:38PM +0100, Paolo Bonzini wrote: >> 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. > > Say, Paolo, why are you queuing a patch which goes through tip, if at all? Right you are, unqueued. I would have caught the mistake before actually crystallizing the hashes, but thanks for noticing! Sean, please send a v2 that removes the help change for AMD_MEM_ENCRYPT, too. Thanks, Paolo