confidential-containers / td-shim

Confidential Containers Shim Firmware
Other
97 stars 53 forks source link

tdx-tdcall: fix TdCallError parsing #724

Closed peterfang closed 3 months ago

peterfang commented 4 months ago

According to the ABI spec, TdCallError includes:

1) Flags, Class and Name (Bits 63:32) 2) Details L2 (Bits 31:0)

Fix the logic in fn from(val: u64) to correctly parse both parts of the function completion status. Include details L2 as part of the enum.

gaojiaqi7 commented 4 months ago

Look good from my side