Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp165834pxb; Tue, 21 Sep 2021 22:21:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgDu7BQjKJiaDLmSMpVLdQr1bc4gwMijzGKYUxvde2K42IgyWeCOF2G5+M+Iui7A2YTvtt X-Received: by 2002:a17:906:32d6:: with SMTP id k22mr37982105ejk.228.1632288088329; Tue, 21 Sep 2021 22:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632288088; cv=none; d=google.com; s=arc-20160816; b=wyHwvSCgIKRPknkpJeeKlsF5erGw8Tl71Yix5iK+vTWA4rCBOcv0ifeZrtMLBh3ZWW 9PietH+bEpY9t9rB2F+vBFB0ODuUSZsRwcI524TdW6bLme14j0APMRVe8cfr4ljmLoKY SBaCpNlsmHdgpCptF4N40OUoAoS01x7Uco3JDXzRtiAVNZUc5QdQeeo1UclEXFjAZIc3 sPPXUTaBeQ5bSseGGuMHRmTuD4NprFpG5GhfUwix7XyC/0KCjK8wtrqRFwsasqrdcrTC dUYcSayz9bBB5xl+sfJHMtedXjd1kYxOH8jbxwPV/pBtEJTnnF6D62sc8N+rE4UZyogP y/dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=3YEyBwj2bC8+ZXigQHcMHA6synpmrTr8G/gTFZutMBw=; b=Ue8/VY2P4e3j7h9Cjcx1p1lvcfIQZ2MDHTbsfdGl+JL6P00fXCj4o5txoG0GMOwtIQ HexFGqdn9VHybrrdvNZb/KQo+0+NtGybDEEA6iMtbTexKqsgNBs+L2nPgb8l3hvS37mh HdYQc3UHw7PE629fRyqGZf9oYbfwgV4kjqBZXTiBD22phpefOSh2sRUVaxP1yzD6yk5J p+uAN8UppxgB7uou/iI+66zicPcrkBftbMuCfs8Pggg4YMlfWbSY0p2wrS2cmGFD7PCt a3ijQB9KCxwl8cd9vehkTnJov3Hv89bntWUhx0ZI6Q+Rg3GHZEW7fyXOdHCLoSQNWIyZ U84Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DClyx36B; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si1606282ejj.357.2021.09.21.22.21.01; Tue, 21 Sep 2021 22:21:28 -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=@kernel.org header.s=k20201202 header.b=DClyx36B; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232063AbhIVFT0 (ORCPT + 99 others); Wed, 22 Sep 2021 01:19:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:52492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231901AbhIVFTZ (ORCPT ); Wed, 22 Sep 2021 01:19:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A2D92610A1; Wed, 22 Sep 2021 05:17:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632287876; bh=ds1qCLLEuGabOz1HUFOYzp9guoYj5j+uwCXOBzR2m9w=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=DClyx36BX/OOPtUePak882HjjOXz7eLKXMXAZzwLjIVOzjCKhWf33Zx0oiJX0fafI 7vmxnwJbEguc65bJKbU8fq5AVNKhyrKqXYxEORPXyFSYBHu+akklyVwDUBAFuKXqlU Xz5gwfvmwFBQIe+UN3Rt8hyus+XTNzvPkxx+j+uQBxBnU+pahueN3D2L7TI1ZsaVOK G12L8Ct3jUCKudCL2ZfMxWlm1DAgglPYN+tK2Lj0DRWbwz6j0ywbs/ENQlvBFh6NsN tyOznLEzWmUOckNcOaRHwM/bscxR+PBcPm5zFHyVGFhaSAHum2DSVl0OhaETqE1oLp Eocjw+6dkAiCg== Message-ID: Subject: Re: [PATCH v5 1/7] x86/sgx: Provide indication of life-cycle of EPC pages From: Jarkko Sakkinen To: "Luck, Tony" , Sean Christopherson , "Hansen, Dave" Cc: "Zhang, Cathy" , "linux-sgx@vger.kernel.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Date: Wed, 22 Sep 2021 08:17:53 +0300 In-Reply-To: <4c7351bcd03b4161b78a7dc01c795b43@intel.com> References: <20210827195543.1667168-1-tony.luck@intel.com> <20210917213836.175138-1-tony.luck@intel.com> <20210917213836.175138-2-tony.luck@intel.com> <4c7351bcd03b4161b78a7dc01c795b43@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-09-21 at 21:34 +0000, Luck, Tony wrote: > > > Since there are multiple uses of the "owner" field with different typ= es > > > change the sgx_epc_page structure to define an anonymous union with > > > each of the uses explicitly called out. > >=20 > > But it's still always a pointer. > >=20 > > And not only that, but two alternative fields in that union have *exact= ly* the > > same type, so it's kind of artifically representing the problem more co= mplex > > than it really is. >=20 > Bother! I seem to have jumbled some old bits of v4 into this series. >=20 > I agree that we just want "void *owner; here. I even made the changes. > Then managed to lose them while updating. >=20 > I'll find the bits I lost and re-merge them in. >=20 > -Tony Yeah, ok, cool, thank you. Just reporting what I was observing :-) /Jarkko