Closed chrisguikema closed 2 years ago
Good catch, thanks for that. There was a comment somewhere in the code path that claimed that the attributes were the same, which prevented me from checking further. We should track that down and add it here. I can probably do that tomorrow if you want.
A kernel bug previously always cached EPT page regardless of the cacheable flag. When the bug was fixed, this function would always map EPT pages as uncacheable, due to the attributes difference between an EPT map and a normal page map. This commit checks if the function is mapping an EPT and provides the proper cache attribute to the kernel.
Related to https://github.com/seL4/seL4/pull/539
Signed-off-by: Chris Guikema chris.guikema@dornerworks.com