How the OS knows the scratchpad region?

42 views
Skip to first unread message

Tianyu Yin

unread,
Nov 18, 2020, 8:26:56 PM11/18/20
to Keystone Enclave Forum
I found that in Keystone's paper(EuroSys 2020), it says in Chapter 4.6 that "The only other
change required was a modification of the untrusted enclave loading process to make it aware of the physical address region that the scratchpad occupies."

I just wonder where is this change? I cannot find it.

David Kohlbrenner

unread,
Dec 8, 2020, 3:06:55 PM12/8/20
to Tianyu Yin, Keystone Enclave Forum
Hi,
The address for the scratchpad is a platform-specific address range. For the HiFive Unleashed this is listed in the docs for the FU540U.
In our case, all this means is that you change the physical address you pass to the ELF loader when you create the enclave. (See https://github.com/keystone-enclave/keystone-sdk/blob/master/src/host/Enclave.cpp#L273)

-David

--
You received this message because you are subscribed to the Google Groups "Keystone Enclave Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keystone-enclave-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keystone-enclave-forum/a1f32b77-a1e9-4176-8e26-29743eb39d1dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages