]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/IoMmuDxe: propagate errors from AmdSevInstallIoMmuProtocol()
authorLaszlo Ersek <lersek@redhat.com>
Wed, 2 Aug 2017 10:20:14 +0000 (12:20 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 4 Aug 2017 23:31:52 +0000 (01:31 +0200)
commitdb1250792c158031f7c6e709ce251d42d2f8fe8e
tree81dfda293f32a967cc3b9e0e5bcbcdc3e52aa7a9
parent5e365a97ecd92b49d17bf77e0d67bf88fff34197
OvmfPkg/IoMmuDxe: propagate errors from AmdSevInstallIoMmuProtocol()

If we cannot install the IOMMU protocol for whatever reason, exit the
driver with an error. The same is already done for the IOMMU Absent
protocol.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
OvmfPkg/IoMmuDxe/AmdSevIoMmu.c
OvmfPkg/IoMmuDxe/AmdSevIoMmu.h
OvmfPkg/IoMmuDxe/IoMmuDxe.c