On Wed, Jun 24, 2020 at 05:02:54PM +0300, Paraschiv, Andra-Irina wrote:
On 23/06/2020 11:56, Stefan Hajnoczi wrote:...
On Mon, Jun 22, 2020 at 11:03:12PM +0300, Andra Paraschiv wrote:For now, the flags field is included in the NE ioctl interface for
+/* User memory region flags */Where is the write flag defined?
+
+/* Memory region for enclave general usage. */
+#define NE_DEFAULT_MEMORY_REGION (0x00)
+
+/* Memory region to be set for an enclave (write). */
+struct ne_user_memory_region {
+ /**
+ * Flags to determine the usage for the memory region (write).
+ */
+ __u64 flags;
I guess it's supposed to be:
#define NE_USER_MEMORY_REGION_FLAG_WRITE (0x01)
extensions, it is not part of the NE PCI device interface yet.
Ah, and just as a note, that "read" / "write" in parentheses means that aOops, I got confused. I thought "(write)" was an example of a flag that
certain data structure / field is read / written by user space. I updated to
use "in" / "out" instead of "read" / "write" in v5.
can be set on the memory region. Now I realize "write" means this field
is an input to the ioctl. :)
Thanks for updating the docs.