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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 25820C433E2 for ; Fri, 26 Mar 2021 17:03:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D85D561A2D for ; Fri, 26 Mar 2021 17:02:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230307AbhCZRCe (ORCPT ); Fri, 26 Mar 2021 13:02:34 -0400 Received: from mail.skyhub.de ([5.9.137.197]:36396 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbhCZRC1 (ORCPT ); Fri, 26 Mar 2021 13:02:27 -0400 Received: from zn.tnic (p200300ec2f075f00aa13db561e4cebd5.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:5f00:aa13:db56:1e4c:ebd5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 654371EC0535; Fri, 26 Mar 2021 18:02:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1616778145; 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:in-reply-to:in-reply-to: references:references; bh=sHOGguuzDH6sV8Z2HSE7+eZGYEGC0SLY0CFm8dGQwks=; b=j13EEC6IU5Z7bV6rdxof2YU+QNTvItS+gCGT4HsJ0ePPAo2I3SEXRZgyflHMFSFRsY2/ra o+zabsZWlRpEIirMjY8sxtLsjHZBWmr1MNQ67/RZCB4MlLhonYZWDNJgqmBy8DuWjZN1X5 4clLSOp+IzGinwRsvBxXOm3rGQ/AboU= Date: Fri, 26 Mar 2021 18:02:23 +0100 From: Borislav Petkov To: Dave Hansen Cc: seanjc@google.com, Kai Huang , kvm@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, jarkko@kernel.org, luto@kernel.org, rick.p.edgecombe@intel.com, haitao.huang@intel.com, pbonzini@redhat.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com Subject: Re: [PATCH v3 05/25] x86/sgx: Introduce virtual EPC for use by KVM guests Message-ID: <20210326170223.GH25229@zn.tnic> References: <0c38ced8c8e5a69872db4d6a1c0dabd01e07cad7.1616136308.git.kai.huang@intel.com> <20210326150320.GF25229@zn.tnic> <20210326152931.GG25229@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2021 at 08:35:34AM -0700, Dave Hansen wrote: > We could do it in the SGX core, but I think what we end up with will end > up looking a lot like a cgroup controller. It seems like overkill, but > I think there's enough infrastructure to leverage that it's simpler to > do it with cgroups versus anything else. Right. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette