Re: [PATCH v39 16/24] x86/sgx: Add a page reclaimer

2020-10-07 Thread Jarkko Sakkinen
On Mon, Oct 05, 2020 at 01:39:21AM +0300, Jarkko Sakkinen wrote: > On Sat, Oct 03, 2020 at 01:23:49PM -0500, Haitao Huang wrote: > > On Sat, 03 Oct 2020 08:32:45 -0500, Jarkko Sakkinen > > wrote: > > > > > On Sat, Oct 03, 2020 at 12:22:47AM -0500, Haitao Huang wrote: > > > > When I turn on

Re: [PATCH v39 16/24] x86/sgx: Add a page reclaimer

2020-10-04 Thread Jarkko Sakkinen
On Sat, Oct 03, 2020 at 01:23:49PM -0500, Haitao Huang wrote: > On Sat, 03 Oct 2020 08:32:45 -0500, Jarkko Sakkinen > wrote: > > > On Sat, Oct 03, 2020 at 12:22:47AM -0500, Haitao Huang wrote: > > > When I turn on CONFIG_PROVE_LOCKING, kernel reports following > > > suspicious RCU > > > usages.

Re: [PATCH v39 16/24] x86/sgx: Add a page reclaimer

2020-10-03 Thread Haitao Huang
On Sat, 03 Oct 2020 08:32:45 -0500, Jarkko Sakkinen wrote: On Sat, Oct 03, 2020 at 12:22:47AM -0500, Haitao Huang wrote: When I turn on CONFIG_PROVE_LOCKING, kernel reports following suspicious RCU usages. Not sure if it is an issue. Just reporting here: I'm glad to hear that my tip

Re: [PATCH v39 16/24] x86/sgx: Add a page reclaimer

2020-10-03 Thread Jarkko Sakkinen
On Sat, Oct 03, 2020 at 12:22:47AM -0500, Haitao Huang wrote: > When I turn on CONFIG_PROVE_LOCKING, kernel reports following suspicious RCU > usages. Not sure if it is an issue. Just reporting here: I'm glad to hear that my tip helped you to get us the data. This does not look like an issue in

Re: [PATCH v39 16/24] x86/sgx: Add a page reclaimer

2020-10-02 Thread Haitao Huang
When I turn on CONFIG_PROVE_LOCKING, kernel reports following suspicious RCU usages. Not sure if it is an issue. Just reporting here: [ +34.337095] = [ +0.01] WARNING: suspicious RCU usage [ +0.02] 5.9.0-rc6-lock-sgx39 #1 Not tainted [ +0.01]

[PATCH v39 16/24] x86/sgx: Add a page reclaimer

2020-10-02 Thread Jarkko Sakkinen
There is a limited amount of EPC available. Therefore, some of it must be copied to the regular memory, and only subset kept in the SGX reserved memory. While kernel cannot directly access enclave memory, SGX provides a set of ENCLS leaf functions to perform reclaiming. Implement a page reclaimer