From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CD6CC10DC1 for ; Tue, 19 Jan 2021 18:28:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 190E922DFB for ; Tue, 19 Jan 2021 18:28:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391251AbhASROw (ORCPT ); Tue, 19 Jan 2021 12:14:52 -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-Google-Smtp-Source: ABdhPJzMOPL/YJVOfAL3EqBigU0yXcdPfJwne27ADFb3JTvmBgplAvSP5w1wFFQyJ+dY1lPdXxwYLw== 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