3 IoMmuDxe driver installs EDKII_IOMMU_PROTOCOL to provide the support for DMA
4 operations when SEV is enabled.
6 Copyright (c) 2017, AMD Inc. All rights reserved.<BR>
8 SPDX-License-Identifier: BSD-2-Clause-Patent
17 IN EFI_HANDLE ImageHandle
,
18 IN EFI_SYSTEM_TABLE
*SystemTable
25 // When SEV or TDX is enabled, install IoMmu protocol otherwise install the
26 // placeholder protocol so that other dependent module can run.
28 if (MemEncryptSevIsEnabled () || MemEncryptTdxIsEnabled ()) {
29 Status
= InstallIoMmuProtocol ();
33 Status
= gBS
->InstallMultipleProtocolInterfaces (
35 &gIoMmuAbsentProtocolGuid
,