From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 19F7620347160 for ; Wed, 25 Oct 2017 19:10:44 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2017 19:14:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,433,1503385200"; d="scan'208";a="1029492466" Received: from jyao1-mobl.ccr.corp.intel.com ([10.254.209.226]) by orsmga003.jf.intel.com with ESMTP; 25 Oct 2017 19:14:28 -0700 From: Jiewen Yao To: edk2-devel@lists.01.org Cc: Star Zeng Date: Thu, 26 Oct 2017 10:14:18 +0800 Message-Id: <1508984058-9452-1-git-send-email-jiewen.yao@intel.com> X-Mailer: git-send-email 2.7.4.windows.1 Subject: [PATCH] IntelSiliconPkg/VTdDxe: return unsupported for exceptionlist X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 02:10:44 -0000 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 --- IntelSiliconPkg/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 3587fa3..e522db0 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.7.4.windows.1