Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2928556pxb; Tue, 19 Jan 2021 09:17:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUaD1HeCVkCffAhaL4/tJsb3AdzaUMWh2Pc+q74uzOB5EaI7Q1EhPbPhbT41AhhZO2+iG8 X-Received: by 2002:a17:906:fcce:: with SMTP id qx14mr3584519ejb.220.1611076646107; Tue, 19 Jan 2021 09:17:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611076646; cv=none; d=google.com; s=arc-20160816; b=r6wZDfijV68tPb4HYwUS7F3/WPUA3ZoX1F1hBfEGO/4PQZVKstkd705xuYLA0GeVdZ mKFu6JD0gq43JXSizO78xfuZRSF9fmEChzoKrnrIyJuS5/QLJreDw9Ewc01ixruKbuX5 CwBzGzI/VwPWXjRFa0L2CwvAsonPNN9JIvFwXm7TK4Mms1xAz7110ivdXqk1eCOEQBgY SkY/zEe2zwT5UvPbaKRjDlomTt1DflBEED8h+9p7uxh+FIg1AC9bpTPpIZh51XYuZSkk 6YaQEztCCdWLOY0ggMdFHeiyXg5LahUkXZ4EinbgOibm6jge2kfz1CWJ2hd20oS+Nfsu 7F/g== 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=qdxYZTSdWv8ptkhrU+8g38xyf1akWV/Sr61NtwYBQ74=; b=qIEfF2ynyoW4Cvzj/5W8oQI2Y8c3G3q5vEdndaC3udAguEwX3CVmn6lVw9PLcHzs9o ClD22xHAod2I4Uw3BmYRQnKIGu2eV+ZNR0rXx6NqEAhlcug0+XvfYcQ1ZVotdd74/mQE js5dgwDTGNuPu4GH8TEYLOxW7l4s5CJHJhgzEy7Iw1K9/ETJaohR0vaObRRPYOtL6SdF eaGnGUhvj20gkbnzTZp7acZHde9jr+xdXRxwa+oiPO9f61wtIX7FZdmx7QafAKysPhVE cF6pKQ2hJz34bhNLn1n1h0hThYhnhaPJS0fCefiA8ihzmRN1TAStpdwcJdgw3LzN6Q4L XCFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ci9VtG3M; 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 m3si8511935ejn.166.2021.01.19.09.17.01; Tue, 19 Jan 2021 09:17:26 -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=Ci9VtG3M; 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 S2389378AbhASROs (ORCPT + 99 others); Tue, 19 Jan 2021 12:14:48 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:58157 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391077AbhASROB (ORCPT ); Tue, 19 Jan 2021 12:14:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611076354; 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=qdxYZTSdWv8ptkhrU+8g38xyf1akWV/Sr61NtwYBQ74=; b=Ci9VtG3MIT6xaOtIzvF7w3OasDNKc6w+ajm0b99qai6qq28cxMYfhaSHgAEzi0Dogz+TBP n+T3tctRTjhRccgS58SIKtV2mSxWNscX+KDWrHwj3uP7J3MbiSUaTXotXYw8qSJGG/9LXD IKj1OAuLvik1u2okdrgSgyeZoSk7ops= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-211-EbTzGS3hMDOsUPRgDBJbYQ-1; Tue, 19 Jan 2021 12:12:32 -0500 X-MC-Unique: EbTzGS3hMDOsUPRgDBJbYQ-1 Received: by mail-wr1-f70.google.com with SMTP id z8so10177905wrh.5 for ; Tue, 19 Jan 2021 09:12:32 -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=qdxYZTSdWv8ptkhrU+8g38xyf1akWV/Sr61NtwYBQ74=; b=VdrSogJzG/68DCt2lWwCBxsQKN3dgJyuiBegVuXtOY9GBAMXrbudIQTwfnmPNaQIfE +2EN/n9UAwJoHcVQ5AhzCR30KSeL2a5Qm1Y2wZ+XRBEVYIpTIbr2qjzXJ8woIG2PdTCJ 5gqVbuat9MGxAWQ0V957sectRYKAByPvgnjeO/n7x2NfnUaCXUhy7Xm/nGhGbruWhpMX yz77DJXFeDZsaio4P2VjlwrRWpI8m5VQ88BIPtEZo1vf/dWEfjZsxc/Rkz8Omz58OwBF 2z1Fer754OCsVERwAOopRGQ0cCd0sHat2rcfvJ0Zu4UrGR8CzqIDMSh8cLo2o7FlCfbo 9wCg== X-Gm-Message-State: AOAM531Mg8mOOd0g2pE2A5vBwG/WikWQRLFUlzCufyBpMfATvcfQvIJR PYHIqty2ZQ6460hY1tqtrACrl1uhzotw1maX634A9tyCU8KLSzZ+oTcwB0paRYOZOm+giyun7QB zyLtWSFDrEsemTalzNlYHZqXU X-Received: by 2002:a05:600c:258:: with SMTP id 24mr549058wmj.161.1611076351570; Tue, 19 Jan 2021 09:12:31 -0800 (PST) X-Received: by 2002:a05:600c:258:: with SMTP id 24mr549030wmj.161.1611076351386; Tue, 19 Jan 2021 09:12:31 -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 g192sm5857433wmg.18.2021.01.19.09.12.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Jan 2021 09:12:30 -0800 (PST) Subject: Re: [PATCH] x86/sev: Add AMD_SEV_ES_GUEST Kconfig for including SEV-ES support To: Borislav Petkov , Sean Christopherson Cc: 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> <20210118202931.GI30090@zn.tnic> <5f7bbd70-35c3-24ca-7ec5-047c71b16b1f@redhat.com> <20210118204701.GJ30090@zn.tnic> <20210119170942.GO27433@zn.tnic> From: Paolo Bonzini Message-ID: Date: Tue, 19 Jan 2021 18:12:28 +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: <20210119170942.GO27433@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 19/01/21 18:09, Borislav Petkov wrote: >> It was the AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT dependency that tripped me up. To >> get KVM to enable SEV/SEV-ES by default, > By default? What would be the use case for that? It doesn't enable by default SEV/SEV-ES for all the guests, it only enables the functionality. But tying that to a Kconfig value is useless, it should just default to 1 (allow creating encrypted guests) if the hardware is available. Paolo