From nobody Fri Dec 27 03:16:13 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 15034910750461000.4110648279341; Wed, 23 Aug 2017 05:24:35 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 08C5521E47D53; Wed, 23 Aug 2017 05:20:44 -0700 (PDT) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0040.outbound.protection.outlook.com [104.47.40.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A211F21D2E62C for ; Wed, 23 Aug 2017 05:20:36 -0700 (PDT) Received: from brijesh-build-machine.amd.com (165.204.77.1) by DM2PR12MB0155.namprd12.prod.outlook.com (2a01:111:e400:50ce::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Wed, 23 Aug 2017 12:23:07 +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=YY+vASHcZkg+9gChPWo6DhYdrGP7E30ALMAIDu7jtDo=; b=wEvOi3BT0A9PjDEKn3ymXZayR/fZjrHGSEzIZRyeIN+k7taz8qCeHcoCidmsVsREiANWpLOpL864wgDUVIXHUrJhPK5mJpG4mWnu44NOAANzXsjoES8fiIlbvNTVFzdP+RDr9BCNuYwfhQjGVLgTG1vYMAJtVDbgcvgF5P5SNsQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; From: Brijesh Singh To: edk2-devel@lists.01.org Date: Wed, 23 Aug 2017 08:22:44 -0400 Message-Id: <1503490967-5559-21-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503490967-5559-1-git-send-email-brijesh.singh@amd.com> References: <1503490967-5559-1-git-send-email-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: DM5PR12CA0069.namprd12.prod.outlook.com (2603:10b6:3:103::31) To DM2PR12MB0155.namprd12.prod.outlook.com (2a01:111:e400:50ce::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cfdf56e5-718e-414a-a66a-08d4ea21b5f1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM2PR12MB0155; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 3:idZSlaXF6wZYjKwA+aB3tZW9mkd2MsaFe1PxXUQRTRw0YPdzy8hHC6paBeRT9S+yGOeirISyoF6o3e6J0HC5d2spQChShT0uVD9qLNjS2u/oopxy75isZukz6NL/1ovZupL/8hEViLyW580Egq6J+RPSUkBw6zlVaSrXN+b/h+sM2eFNk5me6z3WcD8h8NwXSNjkQMEavHGenr82nwYr/KK//dO5XkjM3FWKtlRFBOkiU6vqCgt7ALTXM2vwJWaE; 25:qSwlPpOIEPmSWqGVDOngtqKN1wOCn16SbmFXC2ZwcNxRSxBC2UuT8af1eV73Nw7HWaSiZkxvi3dTU2bO50/0gpbSDwy5h4XLkCcd535CTNv/Y18l3yP2HjOIrG3X7SBDL4huSpMjNwsel6GqHvDBfQ/H7A85VN+cLO3heOaVtI963VvBIHP84cAbmY4mYn5Y6Y8DHFkM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1QfRp4r8mVdc5KybiqmrvN/y2sHatfe/5GpA56yeGLJQQvqnfYP/I7LN7Z9yKD5x4yrkS4Ao7IYkb3/W7SueLQt2qbqh7hnKeaXjELnyvCqmL36gwdPmDxT9RTxQAf6cpWQ7A5sxu0RAg2uqtdsjXcAUPixr/M1HNYNCVkcfmShZ+2XYxuzL8hoehxZUAHB4Nbo0YjVd/8RfRZeZcCYdjXZY0+Du0WjopSc6g== 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)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR12MB0155; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR12MB0155; X-Forefront-PRVS: 040866B734 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39860400002)(189002)(199003)(305945005)(47776003)(97736004)(101416001)(110136004)(6666003)(189998001)(478600001)(7736002)(3846002)(66066001)(5003940100001)(6116002)(6486002)(48376002)(86362001)(105586002)(2950100002)(4326008)(106356001)(36756003)(6916009)(50466002)(2906002)(50226002)(42186005)(2351001)(33646002)(53416004)(25786009)(7350300001)(81156014)(76176999)(5660300001)(68736007)(54906002)(8676002)(53936002)(50986999)(81166006)(2361001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0155; H:brijesh-build-machine.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; DM2PR12MB0155; 23:4gtdHgNC3YJLyCiNp63Eo6Gz41j+tEx4ELUgustwG?= =?us-ascii?Q?ZtVdZfcgUYyR40H7Wk0DG9SPa1u6ijq2qud+1DPG00POGlonHCYiCbskyTyW?= =?us-ascii?Q?BrL9CT131DcYRgHNdAd+9Up5UiurW9sWHWCDE9V27mpLqaXjrO2RUPHlqmgV?= =?us-ascii?Q?ofa1dsrDL+cOjF4Ax9pyqtKA7AVZ6CLSodD1QrE2H6qfpYMGwAb/Jeyt6Xbg?= =?us-ascii?Q?kvxjyXk4FWLdB9wB/GfUwXk4yNn8yzugXS5+YSrAAK/8zuBynYay/c2siYbb?= =?us-ascii?Q?2Q6JZ+4GPL6DzfrNK4ExiVHl5oxqE8M8UKfi64f5coF71NhYdx/2LDEXgLT3?= =?us-ascii?Q?7VZw7d62cqmUOlpsdrx65ydZFcAXNrZ+lYXG/2Nhuv68xpTIOmczZPM79JoR?= =?us-ascii?Q?OJmDmRkp48GCs5VSoDUvccsXIO/5IidFGT9sqhUMxzjABBSwx+x1wbb2gTx2?= =?us-ascii?Q?Vn31NfF8N1thWa7e8y6qqJTXawC/ITzl/dtICt1I5WNsA0v+ebBL/dJEk6Ek?= =?us-ascii?Q?9gvFkKfwZ84V6rD5CcEy5PHOdElVybqrpYVnYSpdkwIbeoErrRLJMclrUrwy?= =?us-ascii?Q?eHdmpQxw36/TpMkNl1pjVIqIJ4UMcxKdk24ePb4XCoapUoollPlAxy7ZUidV?= =?us-ascii?Q?Br7ZPM9y4neweYOquGxU200us0Mlb0BXN7wrPVxYbvDeqriVJmOq/N96g0l0?= =?us-ascii?Q?blAfPvWG72exH299HIBkpz3hDsA8z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/7dOoOSMzpoU5wqxfrd5Tm52nCOSXmBs8Cs6XtDRp0Cx/xKfnHOeD99P+6L13mqIY3lOk1XVAhAKff+ChU+4=; 7:PJg7BvK97nhqPwKpihRnUu4lH55WiROSnVe8Yu6fsp7+uU5rxv4aHSUM2zHQ8qssQZH319LKf3SEtYvuzRhv+DD65NRCe2B+CWzuhjzj9cf1PvvRZmGTG7aM9h7N4VKUk/jyx9QWnIuKB1U+SXgZqPJjxkwP2fFQRl5P7Xz+IO+HV/jJIUxO4W+TB7YbqUs4yqQOsG5yGSMNk83CMR2v8vo2vQTuXY9iPRrGAobm1Xk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 20:XVA987FOHWyzHP1eq4dOUWsHSq3WdSDjH234qpSRw2kuZnCEbGLN5KAyeLqITH1RPGmF3/oG+CTHxqS1g0VER8ZKFZiCUMn/j967Y3sT5VDbloI8RucAapDUBzqIZNy7Vk2r7D2oVsHBu52MviaO5cGwZAN/cyzDMBNbVD+rdj1QUpoGEGw1ul4/ejfAYqThD6VMxmpsuFJAXjIo42Zk3qtxU4nMl6N9uCVMZR1fJiVYb6pj0ZpbYcLNSMudG5Qd X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2017 12:23:07.1697 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0155 Subject: [edk2] [PATCH v3 20/23] OvmfPkg/VirtioRngDxe: negotiate VIRITO_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" In previous patches, we have implemented IOMMU-like member functions in VIRTIO_DEVICE_PROTOCOL to translate the physical address to bus address and virtio drivers are updated to use those member functions. 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 --- 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 59f32d343179..32512d882f7d 100644 --- a/OvmfPkg/VirtioRngDxe/VirtioRng.c +++ b/OvmfPkg/VirtioRngDxe/VirtioRng.c @@ -278,7 +278,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 @@ -359,7 +359,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