rivosinc / salus

Risc-V hypervisor for TEE development
92 stars 25 forks source link

HypMap clean-up #284

Closed glg-rv closed 1 year ago

glg-rv commented 1 year ago

This PR serves both to clean up my conscience of U-mode PRs leftovers and to prepare HypMap to support virtual mapped stack more easily.

Sharing before the stack patch to gather opinions.

patch1: U-mode Shared Region is renamed to U-mode Input Region, as it is not writable from U-mode. patch2: All layout const definitions are moved to a new module: hyp_layout. patch3: Private/Shared regions (per-cpu, global mappings) is untenable as it would complicate the types too much. Rename them for what they are: hwmap regions and umode_elf regions.