From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 D586E21CEB128 for ; Wed, 25 Oct 2017 21:51:18 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2017 21:55:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,433,1503385200"; d="scan'208";a="167235761" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga005.fm.intel.com with ESMTP; 25 Oct 2017 21:55:04 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 25 Oct 2017 21:55:03 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 25 Oct 2017 21:55:03 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Thu, 26 Oct 2017 12:55:01 +0800 From: "Zeng, Star" To: "Yao, Jiewen" , "edk2-devel@lists.01.org" CC: "Zeng, Star" Thread-Topic: [edk2] [PATCH] IntelSiliconPkg/VTdDxe: return unsupported for exceptionlist Thread-Index: AQHTTgAqlLGY4ZBml0a4pvHyDYekhKL1kRVQ Date: Thu, 26 Oct 2017 04:55:01 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B9AE27D@shsmsx102.ccr.corp.intel.com> References: <1508984058-9452-1-git-send-email-jiewen.yao@intel.com> In-Reply-To: <1508984058-9452-1-git-send-email-jiewen.yao@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [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 04:51:19 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Star Zeng -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Jiew= en Yao Sent: Thursday, October 26, 2017 10:14 AM To: edk2-devel@lists.01.org Cc: Zeng, Star Subject: [edk2] [PATCH] IntelSiliconPkg/VTdDxe: return unsupported for exce= ptionlist 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/PlatformVTdSa= mpleDxe.c b/IntelSiliconPkg/Feature/VTd/PlatformVTdSampleDxe/PlatformVTdSam= pleDxe.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 scop= e // based exception list. // + /* *DeviceInfo =3D AllocateZeroPool (sizeof(mExceptionPciDeviceIdList)); if (*DeviceInfo =3D=3D NULL) { return EFI_OUT_OF_RESOURCES; @@ -366,8 +367,8 @@ PlatformVTdGetExceptionDeviceList ( CopyMem (*DeviceInfo, mExceptionPciDeviceIdList, sizeof(mExceptionPciDev= iceIdList)); =20 *DeviceInfoCount =3D ARRAY_SIZE(mExceptionPciDeviceIdList); - - return EFI_SUCCESS; + */ + return EFI_UNSUPPORTED; } =20 EDKII_PLATFORM_VTD_POLICY_PROTOCOL mPlatformVTdSample =3D { --=20 2.7.4.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel