]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/CcExitLib: Refactor TDX MmioExit
authorMin M Xu <min.m.xu@intel.com>
Tue, 17 Jan 2023 07:43:30 +0000 (15:43 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 18 Jan 2023 03:47:31 +0000 (03:47 +0000)
commite05132aaa091701b457ebcd725484ee5751759da
treec9475de81beacdadc8a13d44552a2d50090c1f65
parentc01622057cde92ded2b1da0bc49d71726da77b82
OvmfPkg/CcExitLib: Refactor TDX MmioExit

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4169

The previous TDX MmioExit doesn't handle the Mmio instructions correctly
in some scenarios. This patch refactors the implementation to fix the
issues.

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: Ryan Afranji <afranji@google.com>
Reported-by: Ryan Afranji <afranji@google.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
OvmfPkg/Library/CcExitLib/CcExitVeHandler.c