Skip to content
Commit 97c3f5b8 authored by Tom Lendacky's avatar Tom Lendacky Committed by mergify[bot]
Browse files

OvmfPkg/IoMmuDxe: Provide an implementation for SetAttribute



A recent change to the PciIoMap() function now propagates the return code
from the IoMmu protocol SetAttribute() operation. The implementation of
this operation in OvmfPkg/IoMmuDxe/CcIoMmu.c returns EFI_UNSUPPORTED,
resulting in a failure to boot the guest.

Provide an implementation for SetAttribute() that validates the IoMmu
access method being requested against the IoMmu mapping operation.

Suggested-by: default avatarLaszlo Ersek <lersek@redhat.com>
Reviewed-by: default avatarLaszlo Ersek <lersek@redhat.com>
Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Message-Id: <c0f9e95f557b601a045da015c1a97201e8aec2ab.1706634932.git.thomas.lendacky@amd.com>
Tested-by: default avatarMin Xu <min.m.xu@intel.com>
Reviewed-by: default avatarMin Xu <min.m.xu@intel.com>
parent 0e9b124f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment