]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/BaseMemEncryptTdxLib/MemoryEncryption.c
OvmfPkg/BaseMemEncryptTdxLib: Refactor error handle of SetOrClearSharedBit
authorMin M Xu <min.m.xu@intel.com>
Tue, 17 Jan 2023 23:52:32 +0000 (07:52 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 18 Jan 2023 05:11:07 +0000 (05:11 +0000)
commit5c7a61135326d7f7f564e4bd11dcf78fe0ce1759
tree5444d3bbc3fcf24a1b8c5c2df7668c24166602d5
parente0dcfb31fb5e008f718af3136a31aae48f0a8007
OvmfPkg/BaseMemEncryptTdxLib: Refactor error handle of SetOrClearSharedBit

The previous implementation of SetOrClearSharedBit doesn't handle the
error correctly. In this patch SetOrClearSharedBit is changed to return
error code so that the caller can handle it.

Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Michael Roth <michael.roth@amd.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
OvmfPkg/Library/BaseMemEncryptTdxLib/MemoryEncryption.c