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=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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 5CDA8C43332 for ; Thu, 21 Jan 2021 00:48:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1CE2A23750 for ; Thu, 21 Jan 2021 00:48:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730489AbhAUAMK (ORCPT ); Wed, 20 Jan 2021 19:12:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403892AbhATXV1 (ORCPT ); Wed, 20 Jan 2021 18:21:27 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BD34C0613C1 for ; Wed, 20 Jan 2021 14:37:02 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id y8so13343983plp.8 for ; Wed, 20 Jan 2021 14:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Nnb1HscmHprX6eDoNs7+EUoL58EhHpBn3f+J0wJeSxI=; b=V+oR9OA+7oIoHFK1y1Ub6gN6wbhjvBFiDeCMXg/keTncTLPfyPDAaXIuVoxZY9y170 U7hr8ZXYfmkpUPh02+rua4HoCf1e671K2pIXPNYEplnqklHR9Zig6Z/bgvVKhB9oIS7L AXdmJMlxmqUR+DhdJTWVc5dQ0zV239EB1MH7bnQx/IqMBMBUojqmL3ZXgkaX1DAReHHW 9smZgr+ES6ydQT/UvHH1MY7s/nEGXVfI+2A2u9a0IJw3bcHKBMZOz93d84wkoFApKkA1 /ltcriDoQ4U/oP+b/oOUm8G3u3ypN6aCTjt9+SozfsL1jLNbL1YfMFWhwAcTHRNIF8WN dE9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Nnb1HscmHprX6eDoNs7+EUoL58EhHpBn3f+J0wJeSxI=; b=PMRuc5m6xrLGVX+NIciXwSp1UAdzAZ+qvUtgdhXJwJ0yp3pnz9Wp89D3Ut1DqEWITL vLOBBFjn4p1wdWyshpiOC+zKuPuZgsHtzw9NEBAArmPqE9gVP4C1N9TeWPCEd3fxPBi9 H1qBMjH5JSuLfC2lEPfNDkusq2EeoRSAMGlXVwzw2NEy12ozmalO0W9MNaE/BBFukxNW M4mo5KETToo60hoPRZuX2lW/39XGkZuuOWLcsi9Q5Z2Rm1M1dKqc5igKAbrm4zjoQjo3 9aygyKQDnMXfdLlbJ3Qd304jTXJmz/UE+teTeMj9XaSUyCvBhdMFew+aXwKyolUHvTnR DM1A== X-Gm-Message-State: AOAM530sHbL0rTE903pr2D2CugwxtHu4P34S+ZvkVLCihBCGgUCI9gjP I/om9p0oaWkGI6VCur4jkhJ3hAxK17iXTA== X-Google-Smtp-Source: ABdhPJw4vW+xGvXPCHEr8cp+vI+tZ+8dmyhPDw+HoalXPpUxIHypQz6oR73f+fm1n+9IivE2IxKk2w== X-Received: by 2002:a17:90a:7106:: with SMTP id h6mr8072746pjk.22.1611182221158; Wed, 20 Jan 2021 14:37:01 -0800 (PST) Received: from google.com ([2620:15c:f:10:1ea0:b8ff:fe73:50f5]) by smtp.gmail.com with ESMTPSA id 4sm3671634pjn.14.2021.01.20.14.36.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 14:37:00 -0800 (PST) Date: Wed, 20 Jan 2021 14:36:53 -0800 From: Sean Christopherson To: Dave Hansen Cc: Kai Huang , linux-sgx@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org, jarkko@kernel.org, luto@kernel.org, haitao.huang@intel.com, pbonzini@redhat.com, bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, jethro@fortanix.com, b.thiel@posteo.de Subject: Re: [RFC PATCH v2 06/26] x86/cpu/intel: Allow SGX virtualization without Launch Control support Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org On Wed, Jan 20, 2021, Dave Hansen wrote: > BTW, CONFIG_X86_SGX_VIRTUALIZATION is a pretty porky name. Maybe just > CONFIG_X86_SGX_VIRT? Mmm, bacon. I used the full "virtualization" to avoid any possible confusion with virtual memory. The existing sgx_get_epc_virt_addr() in particular gave me pause. I agree it's long and not consistent since other code in this series uses "virt". My thinking was that most shortand versions, e.g. virt_epc, would be used only in contexts that are already fairly obvious to be KVM/virtualization related, whereas the porcine Kconfig would help establish that context.