Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5674716pxv; Wed, 28 Jul 2021 17:11:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/FcbR8ibL1q60C09d5Yb5gBuulpBOz/gljU3E3vpZ95kRJfrRT29fmtF3Cjv4wcvjBuMP X-Received: by 2002:a05:6402:95a:: with SMTP id h26mr2797428edz.109.1627517483228; Wed, 28 Jul 2021 17:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627517483; cv=none; d=google.com; s=arc-20160816; b=e5MW8e+7vABnd1JGEfuqcLM5CDB5N0opJpRi7iUQVKvjv48WdLYI3jWU9qLnXkSF3c KkiJG66qDIiEB9V3X3ea2MqmilNJlsdlPw1qqsCskFr6R/4BekdfNpT3dPVgpRCKCGde xurKY6EU3h1NyGJd+ec5o/lnshypAC74lLgyDM7xIFMQisD7tZjem2cEzrLm+IJCdF08 WIHwqM1xaDVkDHNP+e4OwPR405UX5UeUwEkMEd92CUv81lyTmDlxKNyQoc7k6QdvfJbb hp2sXDSz59IGvfHfksv0VXs2+Z6O3PPOVxWJyrKWy2FmTKTthYzHJtdr8RUqNzNAntOn TsjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=652c8+1KBJbyC2zYVRbRKgp8eVRPzm13FBaiNxdDRtY=; b=K8hoMiKqkeNvc9D5av4l1f0nX/fL1BwXtq1xSmhwTifh7MfRmp2XzHa0PlrBMtmuzP MvxI20HO22hrQmwBOYN3hq42hd9CKHiS1QM8A4H7jJPwWwYqYPjdtt/PpN/ZCDnJh89v H4Nf7/YthepGRYPzKgVuOi8c+CSoEp1SnM65pAFORZCbJ15jvqA25YN7lnBz8KW36sJv KSOIQvKgRCG5xqN1bGBhmX4PoELVnMB7ejXbP4CGz+tYc/1GDXdIpYOhtxgEpNs2X8hs 41Vu5gsUZAiMKjGtzD0+magFMyZjq4FHIZ4M936Jbxs1BxYtZPgJmer1wGaiy7pgg6U0 vVjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=o3XDZtCr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eg42si1003719edb.69.2021.07.28.17.11.00; Wed, 28 Jul 2021 17:11:23 -0700 (PDT) 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=@google.com header.s=20161025 header.b=o3XDZtCr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232895AbhG2AHQ (ORCPT + 99 others); Wed, 28 Jul 2021 20:07:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232471AbhG2AHP (ORCPT ); Wed, 28 Jul 2021 20:07:15 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF43DC061757 for ; Wed, 28 Jul 2021 17:07:12 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id i10so4778904pla.3 for ; Wed, 28 Jul 2021 17:07:12 -0700 (PDT) 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=652c8+1KBJbyC2zYVRbRKgp8eVRPzm13FBaiNxdDRtY=; b=o3XDZtCrp/n4ID0XJ1QoYno+6w+0gssu3DR3nRuyzSgVz5L62KRTllVdtXUhI8QBF6 95XEIzHtunOTEgkzV4wR4GTvhTjit+hNHXK+PiY1gZvLJHBLgNn1IilBrrMrqDwh7xQR aefUUWXuEVx1kCX2MYdDzCfe17E8uQ4X/8Q41PinoZPlrw0IIbrLsessAHBmS4crXcRm +PpKgNKwSpdt/XULmtvG1caQUqjjQM0796hejXlI1kU1pb0vWKLazvblmjSwLzDq95HP 6VKNyuO2pJI2qOz8d6g9bpB+Q5vHIWv+ISQhWcNRP5kztWRBmT/LaVqKxnjBVAJXm9V6 tZOw== 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=652c8+1KBJbyC2zYVRbRKgp8eVRPzm13FBaiNxdDRtY=; b=Zzbb6j4cbnSuT7g8PzmXuKcL7ITwktiE0kaHDRatGuBKDvpyfofzSwHiOKbk055LJ4 swipAVH218MA68RrrZ7421nfdLapaabUDYubNM/cu5yEbDdM+LR19ClRtcEP2JPJ3qeG /mjj7MowISjysp3jWmFIdkM+EImnkgCwj369sh/KQqB/kjX9CSY4EYeKdnnuLkCEKiYX eseoTC89SxgT7UmgFABD4XTMC4o4s1cu5n2jyX7L+s0uZMPql5hRf9xpQEWxPmFU3fKy mrMiQFp2yC5WC9BDGHICkYdAJFInFSSqDv2BEId2YMIoTHYAVx64cVab2hYaYUhzWYVw u3Ew== X-Gm-Message-State: AOAM530e49/JrKSnhS7bijBPksuEYSfSUiuFo7Fi1HZS/yWjul7FBHgj WMNM6RwBD2fjZW368+TgtFEj6Q== X-Received: by 2002:a63:4446:: with SMTP id t6mr1385476pgk.76.1627517232177; Wed, 28 Jul 2021 17:07:12 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id m18sm1228000pfd.42.2021.07.28.17.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 17:07:11 -0700 (PDT) Date: Thu, 29 Jul 2021 00:07:08 +0000 From: Sean Christopherson To: "Luck, Tony" Cc: "Hansen, Dave" , Jarkko Sakkinen , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 1/7] x86/sgx: Provide indication of life-cycle of EPC pages Message-ID: References: <20210719182009.1409895-1-tony.luck@intel.com> <20210728204653.1509010-1-tony.luck@intel.com> <20210728204653.1509010-2-tony.luck@intel.com> <17054ca5-0ef7-4b28-ab26-b1b96aa7403f@intel.com> 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-kernel@vger.kernel.org On Wed, Jul 28, 2021, Luck, Tony wrote: > > - epc_page = sgx_alloc_epc_page(NULL, true); > > + epc_page = sgx_alloc_epc_page(va_page, true); > > Providing a real value for the owner seems much better than all the hacks > to invent a value to use instead of NULL. > > Can you add a "Signed-off-by"? Then I'll replace my part 0001 with your version. Signed-off-by: Sean Christopherson > -Tony > > [Just need to coax you into re-writing all the other parts for me now :-) ] LOL, it might be easier to convince folks to just kill off SGX ;-)