From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Thu, 26 Sep 2019 05:16:10 -0700 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B2E9D10DCC8B; Thu, 26 Sep 2019 12:16:09 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-49.rdu2.redhat.com [10.10.120.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id EE0BE5D9D3; Thu, 26 Sep 2019 12:16:08 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH 23/35] OvmfPkg/VirtioNetDxe: fix SignalEvent() call From: "Laszlo Ersek" To: Ard Biesheuvel , Jordan Justen Cc: edk2-devel-groups-io Reply-To: devel@edk2.groups.io, lersek@redhat.com References: <20190917194935.24322-1-lersek@redhat.com> <20190917194935.24322-24-lersek@redhat.com> Message-ID: <8339f7de-8237-2a8b-3779-ed85bd8a706c@redhat.com> Date: Thu, 26 Sep 2019 14:16:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190917194935.24322-24-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.64]); Thu, 26 Sep 2019 12:16:09 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Jordan, Ard, may I please get an R-b for this patch? It's quite simple. (Sorry if it's already in your queue.) Thank you, Laszlo On 09/17/19 21:49, Laszlo Ersek wrote: > The SignalEvent() boot service takes an EFI_EVENT, not an (EFI_EVENT*). > Fix the call in the notification function of > "EFI_SIMPLE_NETWORK_PROTOCOL.WaitForPacket". > > This is an actual bug. The reason it's never been triggered is likely that > the "SNP.WaitForPacket" event is rarely waited for by applications -- edk2 > itself has zero instances of that, for example. > > Cc: Ard Biesheuvel > Cc: Jordan Justen > Signed-off-by: Laszlo Ersek > --- > > Notes: > build-tested only > > OvmfPkg/VirtioNetDxe/Events.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/OvmfPkg/VirtioNetDxe/Events.c b/OvmfPkg/VirtioNetDxe/Events.c > index 620910774bc5..83e96e5e5d91 100644 > --- a/OvmfPkg/VirtioNetDxe/Events.c > +++ b/OvmfPkg/VirtioNetDxe/Events.c > @@ -58,7 +58,7 @@ VirtioNetIsPacketAvailable ( > MemoryFence (); > > if (Dev->RxLastUsed != RxCurUsed) { > - gBS->SignalEvent (&Dev->Snp.WaitForPacket); > + gBS->SignalEvent (Dev->Snp.WaitForPacket); > } > } > >