From nobody Thu Dec 26 11:47:59 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 From nobody Thu Dec 26 11:47:59 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 150365749063926.506266091902148; 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 3A4D32095AE41; Fri, 25 Aug 2017 03:35:30 -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 A790D21D1E2FB 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:02 +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=nlWUXr79BXcJ08JeosFjbnEPpLcAIZhv+Dtg5rd0op0=; b=23mCe2XqKs8iGz2dqMIPBZR04vjlrEsynyR6dGYi0TmZVvY8Bav8nnyFtc7HokLyl1g9i4rp9jdqodyjXq602Wl1V0np5Hi+I2KoEwL2ed4Gb2C+okqUgOQtoFrrlShsNJ41Ygz/Hu//WqqHuD5OwJ7To4EbbqjH+iz99RvHMMI= 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:47 -0400 Message-Id: <1503657467-21375-3-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: 95a39592-362b-4c4b-79e3-08d4eba55d18 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:yMKXSXTH/xS2BUpRZ5uh26660pxxKvm/Sk0hjUCzEavM0A/hZi6yecHroLXyhThtSQrdFST9cFYBEC3v7LlBrdY4uCq8+J7uBANC25uhehNuM3/SEgChNp3i4AF7GKtHJKEp+gqk3kzkOzy/72ze9BeOkm3L6A8NBsj1LEz4zS/9Ou3dhfCWOTDj9QvwIhLwHRLGLGlCzYb/pGb042LFMj3hwR1s3PEEJPy+wKWnDIdIRKz5bM/f377SBqVnEfmU; 25:8ff2PRnvZjdEr8Lbxab8Sp904+m+jQd2GZB70MYVmTJhsi1syk9SUnwZbgx1HntNy5darAenu81b03Bqp2a9tbfQN5zaXjWqEMOGjSQSSHTmL04gIHfhyziOBvBQFPUXcB1inSul20zVYdTRJzHnrm6RHIu4JzQNnhM7MF64wSWnUd3HjztuoS/DExnNvdicsHJ/X2sUUFj3yR4j08rSodVEEAzSybNdpWGv4llphdcaYc5f0Z49xvAZ0/H82TXdArxz4Gs7pF2EAhw0SMrDazeMiDhlp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rzpcdbPGLRZa7LMEMFyb+sVbK9eoV/P7Aa7YEy/+Grvl2sBJ+QXFjR6IJKXPvwNBShYCDRvpjSX9NOKgDl1mqcDR6e1Jy0QKt8yuzIyWxE90zm2W1JqPOX5zjCsQi1vvv8GiJ9LjD4zzA== 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)(105586002)(5003940100001)(6486002)(2950100002)(8676002)(101416001)(76176999)(6116002)(6666003)(50986999)(66066001)(478600001)(106356001)(2906002)(3846002)(53416004)(81156014)(42186005)(25786009)(33646002)(50226002)(81166006)(36756003)(189998001)(6916009)(2351001)(2361001)(344415003); 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:MKyWjciEZYWcxAgy5xEJb1hPn/pNY+ilXuKr/zwaD?= =?us-ascii?Q?XWAW56Fj/8gtrnmM0QkhvrXS9o7V5w5fwpe70w8f7DxMC/x4CnsU9d16D040?= =?us-ascii?Q?t3g8IgYGvWlh7ZeQ9U6XKkL9fcQC98Ax98uJPdtzhIDtdheRvOXHeTnB6Dvh?= =?us-ascii?Q?9rWnHAe7PIZMT0i0+8q4tVZ5DujsOcnbqNYccu+YkW4aHV24k1Tcw4D7gN4Q?= =?us-ascii?Q?+l+IUiG20+d5Q5ZE31oecyIkZs1Hqzs5LRbCurFuXZ3o5Tsqq890xKKSjDAc?= =?us-ascii?Q?29H22JhmJdrIlrkdJf7npVlBUauy36DE4BevZYWpXEp8wgD7vz1NUoVAZrzW?= =?us-ascii?Q?nz2HOtxlUT3Lz8g9LbltoGyxG+IgEWbB/X7lMNWihudPkULEGWyBwf5uKG+C?= =?us-ascii?Q?Cfmpf2WiZ+VTqY1oTGbsYXGdGL29VCidp8awl/+O6mjEE83jGGbFfeQwGUjd?= =?us-ascii?Q?b6DlOPMYRQTXs4lPrPZyjMjKZNn2x1Iqi0Ocwun7RtBnfZHnJ4nHxPDxvhpt?= =?us-ascii?Q?RmfTTE4KuUdWoMa9HNQsLFva0urGs2mZnDkG/+Qtql3jHBJLE0TXG5bWBvHC?= =?us-ascii?Q?0/116qXyMHWTOHRQywRGgcVqptj8tdU6xf4zz01eqcbWIGeWcnOpwG8hZavB?= =?us-ascii?Q?s/bMsVlp2VoNnY2EGUjU5ZbTZ0+hq4c/a7JSCMq4Nw57h9/lk6SA9nkex89i?= =?us-ascii?Q?g8p8bDiYYltNQOpwjMIOkd8opPvqxYxmWOdsWewMk3OlqPUySp1lpYK3qWSy?= =?us-ascii?Q?ehFbPAdUm/1uVJVLL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EXH/3EZm0ea8eGXxzblhlej3W1KPC0Ec/fJflNeowlr/PEVDqC3yr54sPQ45ILdrkNTezpYTJnau63TKnt2/z18IuLzAVOs=; 7:Jz+o/3830aZWI5xka8b4DcsswQLuxYIbyCMfHCaWMDyPb4iuA/VMaxuqQ0clQph1RNesEGNdSnJSZ7ZiBBROxw5Ag1LLZAc7wMOajy6jaoI7vCs+aGStKXrJmxYDslDxL73lUOtkkqTj+uexGCgJccSlx3lSmnluzXog4FbF6sFX2+pB3yAalBL1O7d8RJ3A6YUTMfZGfFwBeUq3+sWYwJH8yL0cv/Nk2IuZTH2QMck= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 20:gQ0HzZ2LlwTWe0HzLDT389yD/T2we8pJZVJpEkskCF0vmraTA8ck29BKbrs37DxO4khJpmthyBwOpg55ptHfpwtJhHf6SJvsbztUsoM+V/k3h+k9B1KFtX4xanO80StQt2u08GIZf0vQli4WNfqqYpzoOmK5QA7yKYmMcoLJG5ZHpfwHXcX7bF3DsOXYPvya5JtJeVQONs9QgofOmxl6wa/hWKCQEGSo/5VqOnZ10+x0RH6gmp5jpkxJtp2GOVON X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 10:38:02.2911 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0156 Subject: [edk2] [PATCH 2/2] OvmfPkg/VirtioRngDxe: negotiate VIRTIO_F_IOMMU_PLATFORM 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" VirtioRngDxe driver has been updated to use IOMMU-like member functions from VIRTIO_DEVICE_PROTOCOL to translate the system physical address to device address. We do not need to do anything special when VIRTIO_F_IOMMU_PLATFORM bit is present hence treat it in parallel with VIRTIO_F_VERSION_1. Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Tom Lendacky Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Brijesh Singh Reviewed-by: Laszlo Ersek --- OvmfPkg/VirtioRngDxe/VirtioRng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/VirtioRngDxe/VirtioRng.c b/OvmfPkg/VirtioRngDxe/Virtio= Rng.c index 4e6799788105..80380bcdf8bf 100644 --- a/OvmfPkg/VirtioRngDxe/VirtioRng.c +++ b/OvmfPkg/VirtioRngDxe/VirtioRng.c @@ -279,7 +279,7 @@ VirtioRngInit ( goto Failed; } =20 - Features &=3D VIRTIO_F_VERSION_1; + Features &=3D VIRTIO_F_VERSION_1 | VIRTIO_F_IOMMU_PLATFORM; =20 // // In virtio-1.0, feature negotiation is expected to complete before que= ue @@ -360,7 +360,7 @@ VirtioRngInit ( // step 5 -- Report understood features and guest-tuneables. // if (Dev->VirtIo->Revision < VIRTIO_SPEC_REVISION (1, 0, 0)) { - Features &=3D ~(UINT64)VIRTIO_F_VERSION_1; + Features &=3D ~(UINT64)(VIRTIO_F_VERSION_1 | VIRTIO_F_IOMMU_PLATFORM); Status =3D Dev->VirtIo->SetGuestFeatures (Dev->VirtIo, Features); if (EFI_ERROR (Status)) { goto UnmapQueue; --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel