coconut-svsm / svsm

COCONUT-SVSM
MIT License
122 stars 43 forks source link

cpu/vc: improve error handling #300

Closed 00xc closed 8 months ago

00xc commented 8 months ago

Remove calls to Result::expect() in the VC code and return errors so that they can be handled by callers.

VcError is already implemented, so use the already existing type. Introduce VcError::new() to improve ergonomics when creating a new error.