Add explanation for usage of SGX simulation mode
This commit is contained in:
parent
15ce6efdc0
commit
83dfdc4f0f
15
README.md
15
README.md
@ -42,6 +42,15 @@ $ occlum build
|
|||||||
```
|
```
|
||||||
The content of the `image` directory is initialized by the `occlum init` command. The structure of the `image` directory mimics that of an ordinary UNIX FS, containing directories like `/bin`, `/lib`, `/root`, `/tmp`, etc. After copying the user program `hello_world` into `image/bin/`, the `image` directory is packaged by the `occlum build` command to generate a secure Occlum FS image as well as the Occlum SGX enclave.
|
The content of the `image` directory is initialized by the `occlum init` command. The structure of the `image` directory mimics that of an ordinary UNIX FS, containing directories like `/bin`, `/lib`, `/root`, `/tmp`, etc. After copying the user program `hello_world` into `image/bin/`, the `image` directory is packaged by the `occlum build` command to generate a secure Occlum FS image as well as the Occlum SGX enclave.
|
||||||
|
|
||||||
|
For platforms that don't have SGX feature supported, Occlum can also be evaluated in SGX simulation mode.
|
||||||
|
```
|
||||||
|
$ occlum build --sgx-mode SIM
|
||||||
|
```
|
||||||
|
Or
|
||||||
|
```
|
||||||
|
$ SGX_MODE=SIM occlum build
|
||||||
|
```
|
||||||
|
|
||||||
**Step 4. Run the user program inside an SGX enclave via `occlum run`**
|
**Step 4. Run the user program inside an SGX enclave via `occlum run`**
|
||||||
```
|
```
|
||||||
$ occlum run /bin/hello_world
|
$ occlum run /bin/hello_world
|
||||||
@ -154,6 +163,12 @@ To build Occlum from the latest source code, do the following steps in an Occlum
|
|||||||
make
|
make
|
||||||
make test
|
make test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For platforms that don't support SGX
|
||||||
|
```
|
||||||
|
SGX_MODE=SIM make
|
||||||
|
SGX_MODE=SIM make test
|
||||||
|
```
|
||||||
4. Install Occlum
|
4. Install Occlum
|
||||||
```
|
```
|
||||||
make install
|
make install
|
||||||
|
Loading…
Reference in New Issue
Block a user