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.6 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 76405C433E0 for ; Mon, 18 Jan 2021 20:34:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 15DCD22D2A for ; Mon, 18 Jan 2021 20:34:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394353AbhARUeA (ORCPT ); Mon, 18 Jan 2021 15:34:00 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:45368 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388562AbhARUdi (ORCPT ); Mon, 18 Jan 2021 15:33:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611001932; 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=gnd9UYXeayu93vqSZFMjHfttOu7XAptPBbeNJT44DOc=; b=Nt6YG0Cgk/n06E5yBnKxAHDd4VkPkAdr6vkJXzdX7gSTUVV9oHCsuU4VawbpxExTbO6r6V VZ3PnoaMOph7qAIZW7e6xzXx/ayB4PG1nXYGSEA+BDUhiyDpTAVufXcrYsXkxOMOs2sGmh uXFEXtdvgY9ZJyLrP850uoMbQdwqhBE= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-147-254dX3cAPqqO-4_zBpQX1A-1; Mon, 18 Jan 2021 15:32:10 -0500 X-MC-Unique: 254dX3cAPqqO-4_zBpQX1A-1 Received: by mail-ej1-f69.google.com with SMTP id f26so5523169ejy.9 for ; Mon, 18 Jan 2021 12:32:10 -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=gnd9UYXeayu93vqSZFMjHfttOu7XAptPBbeNJT44DOc=; b=LJs+K+Mxyc6Tjhq4vjkipIUxTayS/4M7eimvpUzc8QLTy2WnZAoJaSgdf6O1pNUqK/ rUbSji4Soz65tcgAh5HYwcMjdVqCfT3biiG3N8DJzy4L4KsHCeGUrzpzPJMUGF4wx/zt eSUoXy5gmSEpGK2ttubGYcEWWZQEabo35XlaJ83R6WhSR76lFkxfAfH4Qh2NvpU0jMdB xnaUpC3++7onWItZHN1DKafjtOdbknSqD5k4kgBCpykAQvXpGBPkhjjbMk8LTZ78WHjj Ms2fk9+vLLO6HWusRK+S71udaaj0tvNcsKT65wNIT0fqMW4tgdW5XCDezKF0PSgCH9aW Zx2g== X-Gm-Message-State: AOAM531DaTJwKdyA/VpKFQZfJhkpBPgpT7XOnnu9Y7utlO23nfCjVQiw R+8831xrAHHTd1duumSDgv+S394ewR7uSX9jxkWE1/FhkiuLKTkdLcCp1DdG/nEyc1BGjq92fpU w4zt2PZBMv5PSIwsd++wVaNdN X-Received: by 2002:a50:a69c:: with SMTP id e28mr914594edc.139.1611001929515; Mon, 18 Jan 2021 12:32:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVSVkSJlecNGIkeTie5EcqZVFLyoyYXystA5v6mITGGcWISc5PaXK2JNsMIVR1a6pwAYsuUA== X-Received: by 2002:a50:a69c:: with SMTP id e28mr914579edc.139.1611001929372; Mon, 18 Jan 2021 12:32:09 -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 f11sm1343946eje.114.2021.01.18.12.32.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jan 2021 12:32:08 -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> From: Paolo Bonzini Message-ID: <5f7bbd70-35c3-24ca-7ec5-047c71b16b1f@redhat.com> Date: Mon, 18 Jan 2021 21:32:07 +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: <20210118202931.GI30090@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:29, Borislav Petkov wrote: > On Fri, Jan 15, 2021 at 04:25:17PM -0800, Sean Christopherson wrote: >> Introduce a new Kconfig, AMD_SEV_ES_GUEST, to control the inclusion of >> support for running as an SEV-ES guest. Pivoting on AMD_MEM_ENCRYPT for >> guest SEV-ES support is undesirable for host-only kernel builds as >> AMD_MEM_ENCRYPT is also required to enable KVM/host support for SEV and >> SEV-ES. > > Huh, what? > > I'm not sure I understand what you're trying to say here and am not > convinced why yet another Kconfig symbol is needed? I think it makes sense because AMD_SEV_ES_GUEST's #VC handling is quite a bit of code that you may not want or need. The commit message does need a rewrite though. Paolo