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
12 #include "AmdSevIoMmu.h"
17 IN EFI_HANDLE ImageHandle
,
18 IN EFI_SYSTEM_TABLE
*SystemTable
25 // When SEV is enabled, install IoMmu protocol otherwise install the
26 // placeholder protocol so that other dependent module can run.
28 if (MemEncryptSevIsEnabled ()) {
29 Status
= AmdSevInstallIoMmuProtocol ();
33 Status
= gBS
->InstallMultipleProtocolInterfaces (
35 &gIoMmuAbsentProtocolGuid
,