apache / incubator-teaclave-trustzone-sdk

Teaclave TrustZone SDK enables safe, functional, and ergonomic development of trustlets.
https://teaclave.apache.org
Apache License 2.0
206 stars 59 forks source link

How can I create a OPTEE snapshots? #16

Closed Mangoiscool closed 4 years ago

Mangoiscool commented 4 years ago

I'm new to OPTEE. I find that every time I need run make run-only to start OPTEE environment(qemu_v8). But how do I save a new file I created in the OPTEE environment to my host OS device? Or how can I create a OPTEE snapshots?

mssun commented 4 years ago

Thanks for asking. You can use QEMU_VIRTFS_HOST_DIR to share a directory with host and guest.

Also, QEMU support to create snapshot [1] [2].

[1] https://wiki.qemu.org/index.php/Features/Snapshots [2] https://wiki.qemu.org/Documentation/CreateSnapshot

Mangoiscool commented 4 years ago

Thanks! Sharing folders is very convenient!