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>
This commit is contained in:
Jiewen Yao 2017-10-26 10:04:06 +08:00
parent 01df510319
commit e5d847476a

View File

@ -359,6 +359,7 @@ PlatformVTdGetExceptionDeviceList (
// Uncomment to take affect and comment the sample codes for device scope // Uncomment to take affect and comment the sample codes for device scope
// based exception list. // based exception list.
// //
/*
*DeviceInfo = AllocateZeroPool (sizeof(mExceptionPciDeviceIdList)); *DeviceInfo = AllocateZeroPool (sizeof(mExceptionPciDeviceIdList));
if (*DeviceInfo == NULL) { if (*DeviceInfo == NULL) {
return EFI_OUT_OF_RESOURCES; return EFI_OUT_OF_RESOURCES;
@ -366,8 +367,8 @@ PlatformVTdGetExceptionDeviceList (
CopyMem (*DeviceInfo, mExceptionPciDeviceIdList, sizeof(mExceptionPciDeviceIdList)); CopyMem (*DeviceInfo, mExceptionPciDeviceIdList, sizeof(mExceptionPciDeviceIdList));
*DeviceInfoCount = ARRAY_SIZE(mExceptionPciDeviceIdList); *DeviceInfoCount = ARRAY_SIZE(mExceptionPciDeviceIdList);
*/
return EFI_SUCCESS; return EFI_UNSUPPORTED;
} }
EDKII_PLATFORM_VTD_POLICY_PROTOCOL mPlatformVTdSample = { EDKII_PLATFORM_VTD_POLICY_PROTOCOL mPlatformVTdSample = {