islet-project / islet

An on-device confidential computing platform
Apache License 2.0
91 stars 16 forks source link

Place rd and rec outside rmi #320

Closed zpzigi754 closed 4 months ago

zpzigi754 commented 4 months ago

This PR contains minor refactoring commits reflecting the previous comment. Since Realm Descriptor (RD) and Realm Execution Context (REC) have nothing to do with RMI, it would be better to locate rd and rec module outside rmi module. Note that params in realm as well as mpidr, params, and run in rec have not been moved, as they represent RmiRealmParams, RmiRecMpidr, RmiRecParams, and RmiRecRun respectively.


[before]
`struct Rd` defined in rmm/src/rmi/realm/rd.rs
`struct Rec` defined in rmm/src/rmi/rec/mod.rs

[after]
`struct Rd` defined in rmm/src/realm/rd.rs
`struct Rec` defined rmm/src/rec.rs