From nobody Fri Dec 27 02:11:09 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1503657490301856.5127348060289; Fri, 25 Aug 2017 03:38:10 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id EEE8B21D1E2FF; Fri, 25 Aug 2017 03:35:29 -0700 (PDT) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0061.outbound.protection.outlook.com [104.47.36.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5B1E521D1E2F7 for ; Fri, 25 Aug 2017 03:35:27 -0700 (PDT) Received: from brijesh-build-machine.amd.com (165.204.77.1) by DM2PR12MB0156.namprd12.prod.outlook.com (2a01:111:e400:50ce::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Fri, 25 Aug 2017 10:38:01 +0000 X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=l2SlW1Rf5peaLOrYJ4qPy7z8zo16yQlAwwbSNnVu8Ik=; b=F6J2NwZ9iullUPPRT4Y74572q3IMlJEkCB04g3+M+pse8GikLpAfYoHrQbCbJs/q84pY60RuLA9cjbBhtHd0IKm14O3k4HmPbLe0+UgHMfMmnGMRX7Q9e3yoNEHSOcKOcTC0riTvVGkrz5h/YjmEEz+4dHmenByI3koj4we5a9E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; From: Brijesh Singh To: edk2-devel@lists.01.org Date: Fri, 25 Aug 2017 06:37:46 -0400 Message-Id: <1503657467-21375-2-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503657467-21375-1-git-send-email-brijesh.singh@amd.com> References: <1503657467-21375-1-git-send-email-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR12CA0046.namprd12.prod.outlook.com (2603:10b6:301:2::32) To DM2PR12MB0156.namprd12.prod.outlook.com (2a01:111:e400:50ce::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fefe3995-a6eb-4ab2-94b1-08d4eba55c71 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM2PR12MB0156; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 3:8wgu2SSFpmtUawqdcThElG7IjonJwHALS6hXf+vVf0B7mUmxeh9VtovfDS2rrtkUMp7dXVjJZcYGdlgK2zooLsXFSS3+7rR6rTfMs2D4ha+HasaUEgXJej96HftzSfLWUEtAwEq+NXKLb228cHg5d8fqP4Jy3/6Jxccyd7K4Wl32W74q5tP+XS81ZlTG6UTm9LR5FedREO54eIi8ZIenT3Eqjthovq7HpVKioE0a+zyR+Qu+O4G2jGJgsDIVSGnx; 25:fF917aEt4rWtSrMkFNMRaskt8//Ks+5JalZq6XxSQ/PxOH7aaasWDGCeQIxPk6dOMPmEHSQOS/smodpBGwTONvtz1A1ZZzdJ9RMIsZuQk60JJEw4MfnR2C8/J4aPsjskNSgARjr5AsIN0dZalipgzveA92234+usBo2YIW0TRnolCbCOS8D+ub8KSaFQfGi1FF5TNvY12ReraUE7jqRg5CEoOO8qwCqfSTkhv87KBcwH36ERAPWVgsAVcNWxrRezvR9yjoqLBT5xJokCzKRmGbLVQWW/pzXIQaNmWR8RtOS1G2BuAqihiWcfo2MszTMOscLOyZAHcFrGX/T2BXJVcw==; 31:S1XkXHsMx+7EmaKQ8/zYD3EDYItvm7gjcljwrUgrnoHg1ip4SusmrawSBKCElko8MBbEQdygpbOIH/8+tNo8bm8bK5kZrZDjwnWEsKkZzOfZ2GzqrWta8JasypYYBA2ypPcWyhddDm44Npw4wrub54tReg40TxfgZ2SKHqHSXszTmK4u9j5aZeYZJR2lw4OZ6kJWn3PfG6mXamM02RGp1LG+ZOPBiMmiTGiwGr87/Bo= X-MS-TrafficTypeDiagnostic: DM2PR12MB0156: X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 20:AiWasCI3KPEdbXIasv1DSlkSaTUHuKs/Fgi0yJDQUni6IzI6NK5ysANkbcu1rx+9Ibp3abJG7C3KlHqnmkVb4lGuZW1R8ISI7uu3uqI9773Oc0LG+tBdluKamzOndjZQal37cq+sV3xbGP8EGKCS5fRGaObRvRdKToYLsSL7YAt5dWFEiMMhT3s02Pp/t7WsjucC9ddplZK6J5rGktDC2tWgT5t28QsNazA6P9+qivf5TKml9bTyEWVtEfPWc4NvB4wNzcc1y7urT9vx40cePP4xLOcl7++n0QcrjSCB+zKGYuBXDVcbBWOYQkFRHzcoqoxIdLkslnORomvyrneIHebpvMo1TXPkpOUny11b7bFO9J9X0Yy1W8TtRRkM3ZENgIOyMy40ceufv/GvtxTj0dAjwl0Q2seK+vCn/CI2stMrqRG9PPUNTmKo65G/GCapB2vXPk7uSodiD4mVxzpSzfcGpRxdS7NKAmD7gnWexsDXr5O8GINbiN7srdZMxKuS; 4:xwI5VNPEVzY0lkT57d1bgYa7jnaB+aH0IWqwiFeYROdxHSyqRyLNuvcYaNME6tUxFckJQhNgppONAD94dih0XqAVrx6JGP3SMs58R9OuOSvrY7rk80eQGBQBiMM9TMo0ZRJJ5WAQPycBJXQEg0jdj1DIn6C5geRfE9xsnWrQQ/Achd1bgUjAH8s5vtA9NMYi+OQ8A6sizFZpiVarS6Soq7J+RgNqXQGfNNnT7yKddad4GtJbjXUp5k3TrYPyoNn+GUQVM8UFt9pw0gLLqA2tHOPEd3nRwUGYm0U8XZ5LahgPIhrl4HTlUiiwg8EGuC0KdU7zBnWJ+qjP4ClOCEZGEA== X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123560025)(20161123562025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR12MB0156; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR12MB0156; X-Forefront-PRVS: 041032FF37 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(39860400002)(199003)(189002)(54906002)(97736004)(86362001)(5660300001)(47776003)(305945005)(110136004)(4326008)(48376002)(7736002)(7350300001)(53936002)(68736007)(50466002)(6306002)(105586002)(5003940100001)(6486002)(2950100002)(8676002)(101416001)(76176999)(6116002)(6666003)(966005)(50986999)(66066001)(478600001)(106356001)(2906002)(3846002)(53416004)(81156014)(42186005)(25786009)(33646002)(50226002)(81166006)(36756003)(189998001)(6916009)(2351001)(2361001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0156; H:brijesh-build-machine.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR12MB0156; 23:3TdCl4YxeaM/XMhexFyF/W3t+D7IRkZn7FmvMkLNs?= =?us-ascii?Q?yz6Dm3hBBvlAvUBgK+KwhKdBHvAHynfC1G56pZV+UiTfH5CKj8108N6AIYfr?= =?us-ascii?Q?XnHZXfBk3k1HqE5CqytP8rttuZP4BxLD6afHQUQqn3a0puJUjv8qom1lMjTT?= =?us-ascii?Q?Ie/Ha4Uf5j79kOD5rwTnSiGtjTzsHHlEIDfGjBV2Ra14Rip9ZmgBtanh+S2/?= =?us-ascii?Q?CV+tfMEyXdqR71SSWY36IRluBGue+n3yfbHuVMJqeyAB02NYQ8W2MIMZhoqr?= =?us-ascii?Q?47iRaI1mrhfjRnfvlZGFOKOUyW5WfwK8ymndQU3f8NGx87I+PRypZZMzEyjW?= =?us-ascii?Q?OhTLRSUB3fUrkbTNjNIXLwgQeq3x8r6eLV6V1jdlLi3Hgdqf5+tUZEDxGgL2?= =?us-ascii?Q?aieXHBrkJVqynwfliG6xMbDE3jtYODgbapl4sM4PrvGIv7j1PKe3lLleasDo?= =?us-ascii?Q?A+XGK2ltyWSzMmqrMd1xc9U2LT7r1q7KkSLSPLw2cJbuIBbI2it6Ve3S8SiY?= =?us-ascii?Q?m24rhKz0FcSXePgCUBMQDL3c8B5nLooa+/mvf968Rmu9pCBxaIC79iZYNzpa?= =?us-ascii?Q?HDHRwXpmvfnZ9ZM1Ev4qnehXJl/WyGe05cZv2TdPNSht0jmp/KnT8Ln903D7?= =?us-ascii?Q?PxEZh+2MG8H8FPfYs4i3oFpyUVYvrdSOd603a6rTlIK1PpqooiG0WYHMYf++?= =?us-ascii?Q?TDxOnKtMM4Dq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WeDTeTJXF8Un88mOFeYvzpjHri4pwhe4RvV4FlBKgZPy0gwVvujj6oR4QzNVdbbqwsVSetAIbyF+aw==; 24:XHrRap/7VIaZxG1VeATR5omaZ2FOqI2/nFAFDyC/+99Qef+dRnOfI4moCDJjJYmDJFHa/1pwsRQFGh6fakH2IApDJadJZEP8Xz1kZO8JCQo=; 7:WxZD2LotLsKtfhj/h6xr2N6dmKgppr+fJBP9AC7VfGMVxJsGDgzGrN5laaDwHyC4vEiQjjs2rsyxI7J4kmwpPHmhg/8YPmkkWPzHYoLSZzb/UW7Bi8qITPN1mGv2kuKBj3P/xH0Jj3gJxBlO/S62kn/6nkXG28Pg/Ka0J7kHr/iVPAED8lg8wWTBYe4Ru7TsGSe2zUcT5/mXSSVx43bGYdpg53L56y9BrXuQbncIO8I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 20:VGH28REYzhMYnmunevCQyPuHpP7DxitYtYp2GqiIU+jipej5VP5sZHVhYYFPJIrO9JZOK5SS15frjV3491rJS7ZfVdbrbggtW4SoURy3YZ7gOteuQg2VufOGcUZeqVKeyCaB5IELU+EQPPrr/Hssoa35xmcvw2jzGTqUiQfGXWZfTXtNF8VBP+u0i8Z5hQ/hagMqkPEYLmbEOnFgCuKi8NOnQtiyfct0/BER/xrOqDklPAAecedjK5OTccZC1kRd X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 10:38:01.1973 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0156 Subject: [edk2] [PATCH 1/2] OvmfPkg/Virtio10: define VIRTIO_F_IOMMU_PLATFORM feature bit 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: , Cc: Jordan Justen , Tom Lendacky , Laszlo Ersek , Ard Biesheuvel Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This feature indicates that the device is behind an IOMMU that translates bus addresses from the device into physical addresses in memory. If this feature bit is set to 0, then the device emits physical addresses which are not translated further, even though an IOMMU may be present. see [1] for more infromation [1] https://lists.oasis-open.org/archives/virtio-dev/201610/msg00121.html Reviewed-by: Laszlo Ersek Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Tom Lendacky Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Brijesh Singh --- OvmfPkg/Include/IndustryStandard/Virtio10.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/Include/IndustryStandard/Virtio10.h b/OvmfPkg/Include/= IndustryStandard/Virtio10.h index 4c9b62a3cf59..c5efb5cfcb8a 100644 --- a/OvmfPkg/Include/IndustryStandard/Virtio10.h +++ b/OvmfPkg/Include/IndustryStandard/Virtio10.h @@ -2,6 +2,7 @@ Definitions from the VirtIo 1.0 specification (csprd05). =20 Copyright (C) 2016, Red Hat, Inc. + Copyright (C) 2017, AMD, Inc. =20 This program and the accompanying materials are licensed and made availa= ble under the terms and conditions of the BSD License which accompanies this @@ -81,6 +82,7 @@ typedef struct { // // VirtIo 1.0 reserved (device-independent) feature bits // -#define VIRTIO_F_VERSION_1 BIT32 +#define VIRTIO_F_VERSION_1 BIT32 +#define VIRTIO_F_IOMMU_PLATFORM BIT33 =20 #endif // _VIRTIO_1_0_H_ --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel