From e5d847476ab6386bef4e3c70e76f5d26c606ed5e Mon Sep 17 00:00:00 2001 From: Jiewen Yao Date: Thu, 26 Oct 2017 10:04:06 +0800 Subject: [PATCH 1/1] 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 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jiewen Yao Reviewed-by: Star Zeng --- .../Feature/VTd/PlatformVTdSampleDxe/PlatformVTdSampleDxe.c | 5 +++-- 1 file 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 = { -- 2.39.2