confidential-containers / td-shim

Confidential Containers Shim Firmware
Other
97 stars 53 forks source link

tdx-tdcall: use interrupt blocked flag for TDVMCALL HLT #560

Closed gaojiaqi7 closed 1 year ago

gaojiaqi7 commented 1 year ago

Fix: https://github.com/confidential-containers/td-shim/issues/558 According to GHCI, interrupt blocked flag should be cleared if RFLAGS.IF=1 or the tdcall instruction immediately follows an sti instruction, otherwise this flag should be set