Code: https://github.com/mxu9/edk2/tree/TdxMmioExit.v1
> -----Original Message----- > From: Xu, Min M <[email protected]> > Sent: Thursday, December 29, 2022 4:56 PM > To: [email protected] > Cc: Xu, Min M <[email protected]>; Aktas, Erdem > <[email protected]>; James Bottomley <[email protected]>; Yao, > Jiewen <[email protected]>; Gerd Hoffmann <[email protected]>; > Tom Lendacky <[email protected]>; Ryan Afranji > <[email protected]> > Subject: [PATCH V1 0/2] 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-set refactors the implementation to fix the issues. > > Before the refactoring, common X86 instruction codes in CcExitVcHandler.c > are moved to separate files (CcInstruction.h / CcInstruction.c) so that these > codes can be re-used in TDX. > > Cc: Erdem Aktas <[email protected]> > Cc: James Bottomley <[email protected]> > Cc: Jiewen Yao <[email protected]> > Cc: Gerd Hoffmann <[email protected]> > Cc: Tom Lendacky <[email protected]> > Cc: Ryan Afranji <[email protected]> > Reported-by: Ryan Afranji <[email protected]> > Signed-off-by: Min Xu <[email protected]> > > Min M Xu (2): > OvmfPkg/CcExitLib: Move common X86 instruction code to separate file > OvmfPkg/CcExitLib: Refactor TDX MmioExit > > OvmfPkg/Library/CcExitLib/CcExitLib.inf | 1 + > OvmfPkg/Library/CcExitLib/CcExitVcHandler.c | 697 +++----------------- > OvmfPkg/Library/CcExitLib/CcExitVeHandler.c | 498 +++++++++----- > OvmfPkg/Library/CcExitLib/CcInstruction.c | 454 +++++++++++++ > OvmfPkg/Library/CcExitLib/CcInstruction.h | 197 ++++++ > OvmfPkg/Library/CcExitLib/SecCcExitLib.inf | 1 + > 6 files changed, 1082 insertions(+), 766 deletions(-) create mode 100644 > OvmfPkg/Library/CcExitLib/CcInstruction.c > create mode 100644 OvmfPkg/Library/CcExitLib/CcInstruction.h > > -- > 2.29.2.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#97801): https://edk2.groups.io/g/devel/message/97801 Mute This Topic: https://groups.io/mt/95934163/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
