diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2017-10-26 10:04:06 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-05-10 14:23:37 +0800 |
commit | 21b9d724268e3bbdfcf8360620ac165c77fa33a0 (patch) | |
tree | a8bc45cfd2ffbb25f0a8d8864f33c464af09996c | |
parent | 22d1ad2be979aab30b239cebcede4f6a1c12a9e2 (diff) | |
download | edk2-21b9d724268e3bbdfcf8360620ac165c77fa33a0.tar.gz |
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>
(cherry picked from commit e5d847476ab6386bef4e3c70e76f5d26c606ed5e)
-rw-r--r-- | IntelSiliconPkg/Feature/VTd/PlatformVTdSampleDxe/PlatformVTdSampleDxe.c | 5 |
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 = {
|