From: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
To: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: linux-sgx@vger.kernel.org
Subject: Re: [PATCH for_v24] x86/sgx: Mark all regular and TCS pages as reclaimable
Date: Thu, 31 Oct 2019 23:29:51 +0200 [thread overview]
Message-ID: <20191031212928.GE10507@linux.intel.com> (raw)
In-Reply-To: <20191030105138.13509-1-sean.j.christopherson@intel.com>
On Wed, Oct 30, 2019 at 03:51:38AM -0700, Sean Christopherson wrote:
> Mark all EADDed pages as reclaimable, not just those that are measured.
>
> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Thanks, I merged this.
Resulted also cleaner diff between the driver and reclaimer patch:
/*
* Insert prior to EADD in case of OOM. EADD modifies MRENCLAVE, i.e.
* can't be gracefully unwound, while failure on EADD/EXTEND is limited
@@ -374,6 +438,8 @@ static int sgx_encl_add_page(struct sgx_encl *encl,
}
}
+ sgx_mark_page_reclaimable(encl_page->epc_page);
+
out_unlock:
mutex_unlock(&encl->lock);
up_read(¤t->mm->mmap_sem);
/Jarkko
prev parent reply other threads:[~2019-10-31 21:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-30 10:51 [PATCH for_v24] x86/sgx: Mark all regular and TCS pages as reclaimable Sean Christopherson
2019-10-31 21:29 ` Jarkko Sakkinen [this message]
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=20191031212928.GE10507@linux.intel.com \
--to=jarkko.sakkinen@linux.intel.com \
--cc=linux-sgx@vger.kernel.org \
--cc=sean.j.christopherson@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.