summaryrefslogtreecommitdiffstats
path: root/IntelSiliconPkg
diff options
context:
space:
mode:
authorJiewen Yao <jiewen.yao@intel.com>2017-10-26 10:04:06 +0800
committerJiewen Yao <jiewen.yao@intel.com>2017-10-30 09:25:54 +0800
commite5d847476ab6386bef4e3c70e76f5d26c606ed5e (patch)
treeefa60bbf90686f80654cbdae2c8bff1ce1e0f099 /IntelSiliconPkg
parent01df510319f3de8eb358e400dae786cddc160180 (diff)
downloadedk2-e5d847476ab6386bef4e3c70e76f5d26c606ed5e.tar.gz
edk2-e5d847476ab6386bef4e3c70e76f5d26c606ed5e.tar.bz2
edk2-e5d847476ab6386bef4e3c70e76f5d26c606ed5e.zip
IntelSiliconPkg/VTdDxe: return unsupported for exceptionlist
Since the exception list is not a recommended way, we returns EFI_UNSUPPORTED in the sample code. Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'IntelSiliconPkg')
-rw-r--r--IntelSiliconPkg/Feature/VTd/PlatformVTdSampleDxe/PlatformVTdSampleDxe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/IntelSiliconPkg/Feature/VTd/PlatformVTdSampleDxe/PlatformVTdSampleDxe.c b/IntelSiliconPkg/Feature/VTd/PlatformVTdSampleDxe/PlatformVTdSampleDxe.c
index 3587fa3c83..e522db069a 100644
--- a/IntelSiliconPkg/Feature/VTd/PlatformVTdSampleDxe/PlatformVTdSampleDxe.c
+++ b/IntelSiliconPkg/Feature/VTd/PlatformVTdSampleDxe/PlatformVTdSampleDxe.c
@@ -359,6 +359,7 @@ PlatformVTdGetExceptionDeviceList (
// Uncomment to take affect and comment the sample codes for device scope
// based exception list.
//
+ /*
*DeviceInfo = AllocateZeroPool (sizeof(mExceptionPciDeviceIdList));
if (*DeviceInfo == NULL) {
return EFI_OUT_OF_RESOURCES;
@@ -366,8 +367,8 @@ PlatformVTdGetExceptionDeviceList (
CopyMem (*DeviceInfo, mExceptionPciDeviceIdList, sizeof(mExceptionPciDeviceIdList));
*DeviceInfoCount = ARRAY_SIZE(mExceptionPciDeviceIdList);
-
- return EFI_SUCCESS;
+ */
+ return EFI_UNSUPPORTED;
}
EDKII_PLATFORM_VTD_POLICY_PROTOCOL mPlatformVTdSample = {