confidential-containers / td-shim

Confidential Containers Shim Firmware
Other
97 stars 53 forks source link

td-shim: remove the use of `Vec` in `e820` #700

Closed gaojiaqi7 closed 5 months ago

gaojiaqi7 commented 6 months ago

Reducing the use of heap can improve the functional safety. For e820 implementation, use an fixed MAX_E820_ENTRY size array to replace the vector.

Relate issue: https://github.com/confidential-containers/td-shim/issues/685