Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp956731rwb; Fri, 23 Sep 2022 06:30:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4p6slUDK1XGozoQWWfG+AJflObQVZHNM3uEKXOtt6YFIfEdAWhLpCLuIU1i9N0iQnhybyc X-Received: by 2002:a63:8149:0:b0:439:f2da:d100 with SMTP id t70-20020a638149000000b00439f2dad100mr7846753pgd.117.1663939801453; Fri, 23 Sep 2022 06:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663939801; cv=none; d=google.com; s=arc-20160816; b=ueJuGhQAy+gU2OvFT/KYNCi5i9oRjj7EnWNxS5K+GE32tcffnynymfFLaUzmmlD8JL q3iW6SNsad4Imf4W2ulLP9Xbn172lAIex7FGQYhC+cyZ7p3/u0UVLQuiNg+swlRHZyKr O7Z0xA5HvBeh8e3/3IbD1BpnGC8rQ9mEoR4oaalJZWALBqyMCo0ZkUcFCP7aaiDutC5J ooxC/HN/Bn5FoZWrtVnDrbCwjToeRStELeGVxvyUubOoS3roIkBSKRsnlQh7ofPemo7P nXEzl3HIVIt5fDFQ9FVFl9l1mtgWFyMxsjaVCK0hUBpDs6NLwwybe7kmPikGwZJHF+nQ SNxw== 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=E9JVeLgtFO+etLj9EABTFZZL/QxlackRlrQjk9EHQeY=; b=O8B2t2PKwSGTtygoOgSdp86VcIKXlxXqt4V/NqnxNZ34D2x8x/zz5RKTZ4uNiCMZwc sNTMnS9rW+IwYtyOKR+4ek29uMC6vqm/D12lg/PnQa1+5GoCcWxNA394nBKPiHSjE9iw 6kG786vLBr8lnJsrTfno8GKwc1xG37gizezixXqK2Blikl2FwDX6C8KBC5clSxdHLB+N tKjcjqg2HwirhxMIJrTeh2outxHXPVY+tNvWqhO8s3iVwkyYgg8pP6yecK6CGyHr8pvM ylsiCMJFcE6xPkSem+62YWg/LY1ixsXH/lzesaYf7h6a3svkUqGbnXXKkmPVuaiAZ9la hLNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MrhvdNPp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a170902724500b00178aa0b29ebsi2613879pll.552.2022.09.23.06.29.50; Fri, 23 Sep 2022 06:30:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MrhvdNPp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230165AbiIWMtu (ORCPT + 99 others); Fri, 23 Sep 2022 08:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbiIWMt0 (ORCPT ); Fri, 23 Sep 2022 08:49:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D07FB135730; Fri, 23 Sep 2022 05:49:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6CB1260F95; Fri, 23 Sep 2022 12:49:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BFE6C433C1; Fri, 23 Sep 2022 12:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663937364; bh=jKlwvRhlqKpZTB/gIibghWfeoMWb/cK+eUxT5ZBJaPM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MrhvdNPpP+JywPO2T9ln/RgYCZIbIzVq90Mx1nB2fOuCzGy1floh4sLu4wv+NoHNi z9HysZ2PnFFUWuZWeHR+IjcNrMaFx8irxsZO4x/aKeXQmRoZyElqN1GuxRhNgQQF8M EjnTOloP2xj2W/0uKhzMmth6nznNZIAw+Pb5iSOiAjRWCVf6gSzQGhdwh5AHZZ1mSx z63drz+QkBm3dm1tpmWhlMCY1QM1mpLroSEcE59NTY0jmxyHv8OUSfHvB0swyGyj7c FoFQFWicf4U0STOGrH8aLmr4G9/81GNq+Q4nroSPTl/oA4osU8REAgSRUWY3uQLrIF SnX/XMeHtavAw== Date: Fri, 23 Sep 2022 15:49:20 +0300 From: Jarkko Sakkinen To: Kristen Carlson Accardi Cc: linux-kernel@vger.kernel.org, linux-sgx@vger.kernel.org, cgroups@vger.kernel.org, Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Sean Christopherson Subject: Re: [RFC PATCH 02/20] x86/sgx: Store EPC page owner as a 'void *' to handle multiple users Message-ID: References: <20220922171057.1236139-1-kristen@linux.intel.com> <20220922171057.1236139-3-kristen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220922171057.1236139-3-kristen@linux.intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 22, 2022 at 10:10:39AM -0700, Kristen Carlson Accardi wrote: > From: Sean Christopherson > > A future patch will use the owner field for either a pointer to > a struct sgx_encl, or a struct sgx_encl_page. > > Signed-off-by: Sean Christopherson > Signed-off-by: Kristen Carlson Accardi > Cc: Sean Christopherson > --- > arch/x86/kernel/cpu/sgx/sgx.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kernel/cpu/sgx/sgx.h b/arch/x86/kernel/cpu/sgx/sgx.h > index 0f2020653fba..5a7e858a8f98 100644 > --- a/arch/x86/kernel/cpu/sgx/sgx.h > +++ b/arch/x86/kernel/cpu/sgx/sgx.h > @@ -33,7 +33,7 @@ struct sgx_epc_page { > unsigned int section; > u16 flags; > u16 poison; > - struct sgx_encl_page *owner; > + void *owner; > struct list_head list; > }; > > -- > 2.37.3 > Conflicts with https://lore.kernel.org/linux-sgx/20220920063948.3556917-1-zhiquan1.li@intel.com/T/#m5c911085eb350df564db2c18e344ce036e269749 BR, Jarkko