From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0047.outbound.protection.outlook.com [104.47.41.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 34A7421E8799E for ; Thu, 14 Sep 2017 04:05:38 -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=oEkfJ+Mzs8gCL7r7uYRKHJmdtv2a6ZVq29TJCAcNlxU=; b=ETMcZlF+0MO1D/P9P8/yu5pngv0OxMNXQn97JRpuqqDTILL6lo+iZJG/7GOf9LHhxZDr4fLID5JACxFFaaBpQdCcqa+mis8RcT+A06cXN2fw4vcDSd4nTXiZGpTQTrCYzkhniSdTt5qDjw7HABbtqiblsJEhW23m6wYlSAbPHmA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from ubuntu-010236106000.amd.com (165.204.78.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.20.35.12; Thu, 14 Sep 2017 11:08:34 +0000 From: Brijesh Singh To: edk2-devel@lists.01.org Cc: Brijesh Singh Date: Thu, 14 Sep 2017 06:08:14 -0500 Message-Id: <20170914110822.112540-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: BN6PR08CA0083.namprd08.prod.outlook.com (2603:10b6:404:b6::21) To DM2PR12MB0156.namprd12.prod.outlook.com (2a01:111:e400:50ce::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 87062c28-5f82-4bc8-2978-08d4fb60f11c 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:DM2PR12MB0156; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 3:IoO5bHeZpZaSWLrBjGrUM+zStmlCFNu3dHU2md5UGoYXXDzTo8OFpmiLymNtOO+Xu4Wyw3Z4wOuU0GGzIfpNY/E7l6wdXtnVRJbQ78XZZ9egAP3zVaFcbnuZf7NdfU/SMKUcYkTDg/ly2EWntPtT7JKDVB/y3sotOB+YKJSyMmCEdq0ZcJI2Sq81MtGg1q/L29/3nt/tDpHJ1mKPVe141UPR1nx1A9MjM9A8vE19uuke4uKKAwFjpBbtSeFiLQtX; 25:KjonODdlYyh+oFhH6nP2u6Gmq2TAygspc2QFdexMUb964OZs+fyZbUfrUum4JxyJ/FRmK307DAzgRin1X0FKvwC+KYCJz0eN7EH364qzkcsDYzIPDcZ3N/83TMHAKWMcWywIMLNtOCY7IRbQtaUpoGQgxwMODtskuzfAdIb4qlimWTzPZcB/9jQy6VEpNJWipc4ZTdVQ4eA/oTRDnqGUTQ/Ij2x+CHd5YB8VbWd0/ctpUXL58ppqhAtrBS/iu5bUJ2eN0fk7TKj1tWdxWNpBlJFQ3XR3LhvtedP/0OzQmm/Axssmupq4ZhUSxYHDXoLjnHcdxGermEt0DLXTs4zfOQ==; 31:LGRYuuJD/K0IxJ66/Kiukuy3cLHG+d4NljJWnaypMtBAsK2oTCcALuQNsyHnTVN1YoGdHeLjKLcnoGFJFzQ41nYQJnddym+oJcuPE6NAlBfZkkE81xaczZe1/4bE3kcW1wf0DL+EhVQlOtmMAhkMIMuWtbDRwVGZq9172dP23/FhB8HPl+VAV27Esdq7T3SjzaFUVYzuqeY6gHa3NkzU9AE+t+plNuZbOV/B6kVOH0g= X-MS-TrafficTypeDiagnostic: DM2PR12MB0156: X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 20:I3OGfhIl0QlGrGjBO+yJ7XHPowx3Bn3dbM5oRegSb0qHNnSN3Gow51q8loWIks1Iqyd/nE1UYOAni2W6HYsbYEvagSoAjCuTE/pa3KuoyqlECwSURabl2++9EvrxOUVUGq5u1kpVRgOFDwS0DlD4zGV97wpefG/R9QOau0Y98SXFGFPlgFCVtC3waZGACfznnXVMbEIhsQGAmzJYQSvktK6MZzru/53n9p1UYqRZMv3u6r0ghZoNjD3b7oQLmH6b9bjqmEA56vAoUPUJ/zr47SJu23I+D7yqhG+TCKoSMEthq3kLOPaRcVxU2rc9+02cVNbh9lS2ECl/5kiYj8I0xkQT1L7z9wTS2wCHPmrgOD6PIbaaCAanq52+PKr8TQ/uDbACFSvapGi0txjXSbFSC6t+KmkBRRyKwM8hrSDv6lClx0BpepnD9Wj5Mzh2gII8waKwUC6V7Oe6RU4RoEqackR48Z866zG8G2PcKoAONA9F/JJVhMNtz42f/kDGGIvt; 4:z1szZ6gV7GaYvmoOXs40l9eorGhtNZXZzpSmQBTHjhPfeiLVCreUGw4s7vvMqUywch3uAAwmSbAkYXzg6/FhCTykD1eu9RnEyTmpv4Hl3km3BSepPYGQnyAthwp23RGIA70HPofB9Wp+VWrz70AMdAoYMa5O5lKr+X4mg5Ug6FX8ghOP+HmwSjDeJOskcUbRntaaisCvCGINOz4cyXX4HGzRIgQFACoXExW4Rs4GZi5gjeAaFJngjGdO1vujhZEHmcSCmDwAi8uskdumn6/Z+DPH1flQ/QsZ5DmohHkM1k8= 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)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123564025)(20161123562025)(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: 0430FA5CB7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(39860400002)(189002)(199003)(189998001)(50986999)(105586002)(106356001)(33646002)(966005)(2361001)(2351001)(5660300001)(6666003)(6916009)(6116002)(25786009)(36756003)(1076002)(101416001)(68736007)(3846002)(53416004)(16586007)(6486002)(478600001)(97736004)(50226002)(110136004)(81156014)(47776003)(48376002)(16526017)(81166006)(8676002)(8936002)(6306002)(7736002)(316002)(305945005)(2906002)(4326008)(53936002)(86362001)(5003940100001)(50466002)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0156; H:ubuntu-010236106000.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; DM2PR12MB0156; 23:FmZ26hqRcRnf/2STWcgK0G9CvXBDo2xzwZOwrI8IS?= =?us-ascii?Q?OpHzrSoZIVvZ0ffTbyK93RrL8xfpujIaeHIuQ+GKxeOmDs4T6Rneerc95Iia?= =?us-ascii?Q?vbARcSgP9LsLJGgoIQlwoN19TAO+Z/v5sCu5v2rK/svhwTjPuYg+ROyHzzkV?= =?us-ascii?Q?L0JSg9dUBQ58oyi2qPm6fjmNwmctOUM0pfI5MYg73zG0maHAltRFTsV6eiEg?= =?us-ascii?Q?uxPrfhqg9Z4PvmuJhowkvm/vuHvWuLpmY64E3v3gO6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6NOQptV56LrbzDj0bp7e8J6To4C1CNYLkg3ciKNAuJZY1iaD60MG8kl+DRey6tVJ42xto5PdUscLULjZHr1QoVj1kLvmDEhsEFWoVVOko0YEEb+v8TzscC8+iDHYGZ/+2AOZ9uQdjpT0xqfTCFaocCn7ucm31fcbO/8C/2z6GFWP9B9QqoBN6PHbzS1KN X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2017 11:08:34.3544 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0156 Subject: [PATCH v3 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 11:05:38 -0000 Content-Type: text/plain Thank you Laszlo for detail review feedbacks! Repo: https://github.com/codomania/edk2 Branch: virtionet-3 Changes since v2: * changes to address v2 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