From: Dave Hansen <dave.hansen@intel.com>
To: Jarkko Sakkinen <jarkko@kernel.org>
Cc: linux-sgx@vger.kernel.org, haitao.huang@intel.com,
dan.j.williams@intel.com, Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page()
Date: Tue, 23 Feb 2021 11:20:55 -0800 [thread overview]
Message-ID: <1ce6670a-ea35-c1bd-b5df-c52cc44dc433@intel.com> (raw)
In-Reply-To: <YDVUuF3rqnRCr+Bb@kernel.org>
On 2/23/21 11:17 AM, Jarkko Sakkinen wrote:
> Instead, let's just:
>
> 1. Have a global sgx_free_epc_list and remove sgx_epc_section.
> Pages from this are allocated from this in LIFO fashion.
> 2. Instead add struct list_head node_list and use that for node
> associated pages.
> 3. Replace 'int section' with 'int node'.
I was thinking of something similar.
I'm fine with this approach.
next prev parent reply other threads:[~2021-02-23 19:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-21 2:06 [PATCH] x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page() Jarkko Sakkinen
2021-02-22 0:54 ` Dave Hansen
2021-02-23 19:14 ` Dave Hansen
2021-02-24 17:29 ` Jarkko Sakkinen
2021-02-23 19:17 ` Jarkko Sakkinen
2021-02-23 19:20 ` Dave Hansen [this message]
2021-02-23 19:33 ` Jarkko Sakkinen
2021-02-23 21:42 ` Dave Hansen
2021-02-24 17:31 ` Jarkko Sakkinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1ce6670a-ea35-c1bd-b5df-c52cc44dc433@intel.com \
--to=dave.hansen@intel.com \
--cc=bp@alien8.de \
--cc=dan.j.williams@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=haitao.huang@intel.com \
--cc=hpa@zytor.com \
--cc=jarkko@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sgx@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).