From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0054.outbound.protection.outlook.com [104.47.38.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BF4C121D492C1 for ; Thu, 14 Sep 2017 14:19:59 -0700 (PDT) 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=0+ECvfi6xEtUat4PHeQI94jsI7rpt9tH/A+JF7B4gew=; b=W1OOwoUfw+O+OBTUF6W7sDD7A4aQA94Q+w5JROnvbH4P7ZatrgcKutpSFxyEI00DqFn+AAbmOtL0Y78jjNvabk/No+M8vjHrwFCadhIxWvQZCGKjTZuo4lDIvrP0KE78Xh8ZVdLnOznBqXZmdQRNBQ2e6SOWCwH5siHooL6B36A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from ubuntu-010236106000.amd.com (165.204.78.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.20.35.12; Thu, 14 Sep 2017 21:22:56 +0000 From: Brijesh Singh To: edk2-devel@lists.01.org Cc: Brijesh Singh Date: Thu, 14 Sep 2017 16:22:39 -0500 Message-Id: <20170914212247.124937-1-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: DM5PR20CA0014.namprd20.prod.outlook.com (2603:10b6:3:93::24) To DM2PR12MB0155.namprd12.prod.outlook.com (2a01:111:e400:50ce::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ee60b3ba-e460-4d86-87d1-08d4fbb6c441 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)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM2PR12MB0155; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 3:ScUDpDG8q/73zWkAebS58E4iJVUnGIOi9wi11JgV1TVj9ZxCAgHagCvkGzzp3U/B5Mk5fbDbeSn+mLt7JI/X/qFI5SPtnZM0j/mbxB4bg3f1XKoXVD3rXkwNAB81QgIDay4zXfibTeZKRqWELvtbxzqnjVxVH3JdtnyGV+FNdZ/V3IVvK+TkkbuMDSntOaJ+tV0zvPmiTcQYkkKNygeqBB8ilEF9WaqY2kuJZkwtSZr/xXsio+PiwVIF7SStbSFM; 25:yXQ+7qPmpeLwo1H6aAl4NGaARLXGn2uyEYIBrIiXtNPVC7nz4Ayf7XeD5sfzbtXSeM6BHN5YAS3F36XJe+Je0gdVdQ/HeRKpxh3EVb839cZtAC0h0husLKvO6Okh46stphyhDLJM0oKIVfizl9QyAQ0SjJFVLBEfmSxmyAlN/UI/0a1heeCT7AIuTiAlFhE9OX1ZDKjI7KhK4cze7Rk1zp5BcyNK4VmR5/W3lRXZKwwZDgt89Tz9/KTcs2WAAexMpd4r1HWfP0iprRhVbpSphDaogLyeQm8wwb/wXBr6+1r01Uu/+mcg+BUoIuOimkVHaRRKApjMRdoq3xZDkoIoGA==; 31:t92A0C8E+cNcQqqrFlRVS8jx/Lgk/PIGDZfqncpkAvD3BimgJzSyyZ0PT1wppuJqpnqhHnCEHPiopbl6xCMjZbdP5w2yppeiWPRlyyuRIfynsDDxfvA6r2oeMdmUjFfJ+Z6KI0ByXmemyY+1dtgzdN7h5KNLn+hnJWJO9U4XXx2yy3ToAmMI6f9ICW5pV2HX6j622LMYuLtAQnjhYICyGH0662AchII+C4pX6S+Z4/U= X-MS-TrafficTypeDiagnostic: DM2PR12MB0155: X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 20:x1dce/AM37ig5xNovktT7HCrXAMi5rDksrpnBVex63mII85LD6cUU0sT0D7Ma6+QzQS8dIJg2RNZMuYfZlKeYGMsnxyNKMFjsLfHqnkuB6wADozbap/u6P3f16fWo7HllUgJxCiie7P4hYXfGEnmLPv9V3cKJMixlVF03ehXxyNW+41yYXsNV/3SclL6TXBgrEI1zttoBtTbARwjJcaqjQO1dQ0I3S5r4MgAAnmLEHG9G8lS4syoSI58bRWla1P3uTajv6gubWPGu1yyyf7BfWQYZLLP2a+SfduwrG9QtGNIZRoqLMwM763ukXgR4Qt+D79SRLbJbBnxn/4/dp+u0AqtRfMqN18xBPTwQHl/mlEk0IjPR9pR8bDwWc7dLvKC78h02TdPmNYeg+o8wGvJ3duH+sZipcmIySkk60zxxofoqXTlGACOmmhqYlZ90YsiPtVcydkSiRWPh7CAQGuKagLsKGVLFHPd1qxgEuOzAlTq87bUp733cL6/9KdXr1SL; 4:euPqRxM3YEjFyOIjksinXYwiHMBMYcPip9h8AUCIUFp4MxaDASj21DXVvuVHqOkeT3Am1pdMEjsi6bhN20zjhtI2iLsg0MmKEIxqdmPbVhHQp9pz6mUzNT2dMI5ilbgaMI3PtCG4Y6iEkaG7Tj+I4lUAMDRhdkmO1Ut+URqL4UVl3RZPCrkrTejr2GgNOG5HlXXu2yejqR9/hCjWBSPr0K8dlW/yQJwDMj0FR0DRQZ7UmOWMjczgJ9I3MIN4wLR/Waafte8KhlYTPC9ByyCPTp3nljYs7Cptc7P/0Mkjrow= X-Exchange-Antispam-Report-Test: UriScan:(166708455590820); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123555025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(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: 0430FA5CB7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(346002)(376002)(199003)(189002)(53936002)(4326008)(110136004)(6306002)(50466002)(47776003)(50226002)(81156014)(81166006)(68736007)(8676002)(2361001)(66066001)(6916009)(33646002)(2351001)(36756003)(106356001)(105586002)(53416004)(101416001)(48376002)(8936002)(25786009)(6486002)(97736004)(305945005)(7736002)(5660300001)(16526017)(16586007)(2906002)(5003940100001)(1076002)(6116002)(3846002)(316002)(50986999)(6666003)(86362001)(478600001)(966005)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0155; H:ubuntu-010236106000.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR12MB0155; 23:y1Ky8lek+c2TN5qJcOucswP85aKwu3E29PznNC7GG?= =?us-ascii?Q?VfuqTSW3lA22+FC7gFrLyL3zuDHgAzBpzGB6RzQfNPVfgM/sfg1IlWzg0LKX?= =?us-ascii?Q?eFocY0bq/qVqfXO4H2hhV5mGLLyhAMmhzI6C2ebXW4BtbZJmipqHWQqJGRM/?= =?us-ascii?Q?Pdf9jikhzBB+U0Dfpokk443F+E3RVP6Y/p28XZhYJwZ9dl1qK+GnESsLo672?= =?us-ascii?Q?CfMerREdkyQgMccoOb5w4lUqj92gby1TadDD2VXT3t/KFckLCYN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TUxf?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 6:ibF44Bf/B7YklhUv3fTbCbH8PsDaxKzQAI6uZeyFWPrZaOw9T4qlvKzi4XxQvQ/oJ4SjH1K2zJfLILtbNfuJBp2aQoUtKDgwtwsKBcrAruEI1b4q2/LIWluLewIN3fzmrwZgqb5kZvXVxSB70153DmMyetY8oA1fZ0nya92fqe2EkaM5gm9AwMzyIPVbKMBxQYfSfhY53QQx01vAx/jBSbC8xPrHfalb/eslHBFizjo5rhjsKsZtOX0LBcvGri2s8c+aYmtxhDp40wqclEx4Ly51Zf1VXPG340IqHsKGClPWBWGjf9Xpo11pEKaKX0n2HONnoSOpOw1smLR9B2Kx8g==; 5:XjDM/ZWiqgicHhPaPOoffYG+egBzeBC8Uppu5VRYrQbpTrsa6GeM8NrJErUuiZ8ko1inxe+6SY+YnNRCwskLixv8Dt8W1B+KMubnIzKdlCgEuXX8nufJLHNwwQEBixfWLuKBXqdMnYVsrbSfKYbscvGVMieNwbY7ogN5eiw2pUM=; 24:ayq+nonK9UC3BCNk4FOqs2DFmIEohZ1YL/DVF42E2m59B2KmHNbarDBgZ5Vfr9n1544sH8KJvu/yCS43BUxgyzE9mMq+HSqBlNXOpVVnHP4=; 7:vXYngg6fcN/Kg3SgmX8f/tydm6ReaAQEi01jFWZYF7kL0CTUjGaWvQGM1RIqnK9ShGkv8CAVTrP7Hp00LhcS0oWaupGirAXzPXxLS+NONvKI40FakmvLK2Gg1z5Ns1zuagBm17giS8xGi96NpLtTqZ/ifWcly4rkz2VTJIENd2F2DbP1JnXIW4zU/JlfbbMyqSh5nds5j8k8QHw1aqhuHRUCV8Qn39bGl66Dt1iF0Ks= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 20:2RTiWGxxMq1ex019Sh3fG9q9Jlntd8aWX8zKyJrlvkWdj83z4tgFn/NFhwnQWC5f3WAwHpx4THZJief+xFs1XErksMdorQboSz5gKe7NCbe6MqmZnMa0GuDtTceR+MmzF2k+M4NomSw1d5Vtj3XykeM90rMd4KjO935xgcXMXl51dbMywCJtj0DYagkEj87tHHJJ1PJ5xdLhMoJCzm8CuxiLTJuObGQMU0xZ+4QjdYGlGy+rmy2FNE1oAcWVvfqF X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2017 21:22:56.0393 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0155 Subject: [PATCH v4 0/8] OvmfPkg/VirtioNetDxe: map host address to device address 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, 14 Sep 2017 21:20:00 -0000 Content-Type: text/plain Repo: https://github.com/codomania/edk2 Branch: virtionet-4 Changes since v3: * changes to address v3 feedback Brijesh Singh (8): OvmfPkg/VirtioNetDxe: add helper VirtioNetUninitRing() OvmfPkg/VirtioNetDxe: map VRINGs using VirtioRingMap() OvmfPkg/VirtioNetDxe: alloc RxBuf using AllocateSharedPages() OvmfPkg/VirtioNetDxe: dynamically alloc transmit header OvmfPkg/VirtioNetDxe: update TechNotes OvmfPkg/VirtioNetDxe: add Tx packet map/unmap helper functions OvmfPkg/VirtioNetDxe: map caller-supplied Tx packet to device-address OvmfPkg/VirtioNetDxe: negotiate VIRTIO_F_IOMMU_PLATFORM OvmfPkg/VirtioNetDxe/VirtioNet.inf | 1 + OvmfPkg/VirtioNetDxe/VirtioNet.h | 57 ++++- OvmfPkg/VirtioNetDxe/SnpGetStatus.c | 43 +++- OvmfPkg/VirtioNetDxe/SnpInitialize.c | 213 +++++++++++++--- OvmfPkg/VirtioNetDxe/SnpReceive.c | 5 +- OvmfPkg/VirtioNetDxe/SnpSharedHelpers.c | 258 +++++++++++++++++++- OvmfPkg/VirtioNetDxe/SnpShutdown.c | 4 +- OvmfPkg/VirtioNetDxe/SnpTransmit.c | 27 +- OvmfPkg/VirtioNetDxe/TechNotes.txt | 28 ++- 9 files changed, 566 insertions(+), 70 deletions(-) -- 2.9.5