From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 63DD121E97815 for ; Fri, 15 Sep 2017 01:54:53 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EC3D3883C4; Fri, 15 Sep 2017 08:57:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EC3D3883C4 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-10.rdu2.redhat.com [10.10.120.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id E121C5C896; Fri, 15 Sep 2017 08:57:51 +0000 (UTC) From: Laszlo Ersek To: edk2-devel-01 Cc: Brijesh Singh , Jordan Justen Date: Fri, 15 Sep 2017 10:57:46 +0200 Message-Id: <20170915085747.7209-2-lersek@redhat.com> In-Reply-To: <20170915085747.7209-1-lersek@redhat.com> References: <20170915085747.7209-1-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 15 Sep 2017 08:57:53 +0000 (UTC) Subject: [PATCH 1/2] OvmfPkg/VirtioNetDxe: document Rx/Tx allocs and mappings on Init/Shutdown 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: Fri, 15 Sep 2017 08:54:53 -0000 Document the following actions on the EfiSimpleNetworkStarted <-> EfiSimpleNetworkInitialized state transitions: * from commit 46b11f00ac70 ("OvmfPkg/VirtioNetDxe: alloc RxBuf using AllocateSharedPages()", 2017-09-14): VirtioNetInitRx -> { VirtIo->AllocateSharedPages, VirtioMapAllBytesInSharedBuffer } VirtioNetShutdownRx -> { VirtIo->UnmapSharedBuffer, VirtIo->FreeSharedPages } * from commit 891f016c1b99 ("OvmfPkg/VirtioNetDxe: dynamically alloc transmit header", 2017-09-14): VirtioNetInitTx -> { VirtIo->AllocateSharedPages, VirtioMapAllBytesInSharedBuffer } VirtioNetShutdownTx -> { VirtIo->UnmapSharedBuffer, VirtIo->FreeSharedPages } Cc: Brijesh Singh Cc: Jordan Justen Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- OvmfPkg/VirtioNetDxe/TechNotes.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/OvmfPkg/VirtioNetDxe/TechNotes.txt b/OvmfPkg/VirtioNetDxe/TechNotes.txt index 40a22f66dc22..cd38750a4afb 100644 --- a/OvmfPkg/VirtioNetDxe/TechNotes.txt +++ b/OvmfPkg/VirtioNetDxe/TechNotes.txt @@ -69,10 +69,14 @@ faithfully indented) that implement the transition. [SnpInitialize.c] | | [SnpShutdown.c] VirtioNetInitialize | | VirtioNetShutdown VirtioNetInitRing {Rx, Tx} | | VirtioNetShutdownRx [SnpSharedHelpers.c] - VirtioRingInit | | VirtioNetShutdownTx [SnpSharedHelpers.c] - VirtioRingMap | | VirtioNetUninitRing [SnpSharedHelpers.c] - VirtioNetInitTx | | {Tx, Rx} - VirtioNetInitRx | | VirtIo->UnmapSharedBuffer + VirtioRingInit | | VirtIo->UnmapSharedBuffer + VirtioRingMap | | VirtIo->FreeSharedPages + VirtioNetInitTx | | VirtioNetShutdownTx [SnpSharedHelpers.c] + VirtIo->AllocateShare... | | VirtIo->UnmapSharedBuffer + VirtioMapAllBytesInSh... | | VirtIo->FreeSharedPages + VirtioNetInitRx | | VirtioNetUninitRing [SnpSharedHelpers.c] + VirtIo->AllocateShare... | | {Tx, Rx} + VirtioMapAllBytesInSh... | | VirtIo->UnmapSharedBuffer | | VirtioRingUninit v | +-----------------------------+ -- 2.14.1.3.gb7cf6e02401b