confidential-containers / td-shim

Confidential Containers Shim Firmware
Other
97 stars 53 forks source link

td-exception: fix clippy error `masking with zero` #589

Closed gaojiaqi7 closed 1 year ago

gaojiaqi7 commented 1 year ago

Zero mask here meant the 6th bit shall be 0 for ring0. When the structure is used for non ring0 privileges, the corresponding flag needs to be set.

Fix: https://github.com/confidential-containers/td-shim/issues/587