Re: [PATCH 1/2] x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list

2021-03-18 Thread Jarkko Sakkinen
On Thu, Mar 18, 2021 at 08:01:38PM +0100, Borislav Petkov wrote: > On Thu, Mar 18, 2021 at 11:34:10AM -0700, Dave Hansen wrote: > > I usually get that after I reboot. I have to do this: > > > > chmod 755 /dev/sgx_enclave > > mount -o remount,exec /dev > > Yap, that did it: > >

Re: [PATCH 1/2] x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list

2021-03-18 Thread Borislav Petkov
On Thu, Mar 18, 2021 at 11:34:10AM -0700, Dave Hansen wrote: > I usually get that after I reboot. I have to do this: > > chmod 755 /dev/sgx_enclave > mount -o remount,exec /dev Yap, that did it: 0x 0x2000 0x03 0x2000 0x1000 0x05

Re: [PATCH 1/2] x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list

2021-03-18 Thread Dave Hansen
On 3/18/21 10:40 AM, Borislav Petkov wrote: > So both patches look ok to me but the sgx test case fails on -rc3 with and > without those patches on my box: > > ./test_sgx > 0x 0x2000 0x03 > 0x2000 0x1000 0x05 > 0x3000

Re: [PATCH 1/2] x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list

2021-03-18 Thread Borislav Petkov
On Thu, Mar 18, 2021 at 01:53:30AM +0200, Jarkko Sakkinen wrote: > From: Jarkko Sakkinen > > During normal runtime, the "ksgxd" daemon behaves like a version of > kswapd just for SGX. But, before it starts acting like kswapd, its > first job is to initialize enclave memory. > > Currently, the

[PATCH 1/2] x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list

2021-03-17 Thread Jarkko Sakkinen
From: Jarkko Sakkinen During normal runtime, the "ksgxd" daemon behaves like a version of kswapd just for SGX. But, before it starts acting like kswapd, its first job is to initialize enclave memory. Currently, the SGX boot code places each enclave page on a epc_section->init_laundry_list.