From nobody Mon Feb 9 20:34:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+111680+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+111680+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1700751762; cv=none; d=zohomail.com; s=zohoarc; b=Q45rgTNc2L7F2obPapbKsrutWlCdRj31Uf64pKuO1MuS4fGHwSaupLrRbjBdyTZPDjFmlNT3aaR7Ax1KJ4LiM/eZqKTxnVDlizKLfrYTGqsXVM1bfw73aNF6kfTy92XFkPcfrfFJn5ZKtjjVNYiH8JSc4XhAyqHYbRmuXxplJIY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700751762; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=1F+8+4o5hqG4+92sJi0rixnW3mCJpmnDSQD4L+TUgoU=; b=D7RfWZRiS0piVtwLIb9gHNJSXPjBSIjXcHhQUh98m+4NmBEKIojUO75hl5+V2p6qcJoBWiyNjjivmIz4Ce/vCJ5Wyjy9fpWwfI2Zbi+bHwmhDDjQmflnaRPVcpaPp4NMlbda74BPNjsPKFOrju/e+JS5PCreCZQP+M7/8yC+vY4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+111680+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 170075176291287.24411255902396; Thu, 23 Nov 2023 07:02:42 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=swCiZNSxArgS9abR1xSkTVxh/eqAYZUlhXsW23oys0M=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1700751762; v=1; b=OO37HT5CPot6ofcYQUo9lwE/ED49UOEMQGmLxhAYX42yiMuI5AK3GIVWYh5PWg4xAQljGpgr hGs9qe5MDEtV1wAeKld2rWdtiHO5As/yt23GqExC9mu2HceHR7TL2/UsM7UYn1gje/ZyfEOaD9u 0GNifRM7Av/6eZQQpXDwUnYs= X-Received: by 127.0.0.2 with SMTP id THAXYY1788612xoxSaEUBSl8; Thu, 23 Nov 2023 07:02:42 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.93008.1700751761506314791 for ; Thu, 23 Nov 2023 07:02:41 -0800 X-Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-465-SIT5jAWHNxW5X6EBqiSLkg-1; Thu, 23 Nov 2023 10:02:39 -0500 X-MC-Unique: SIT5jAWHNxW5X6EBqiSLkg-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3D3941C05135 for ; Thu, 23 Nov 2023 15:02:39 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.193.187]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0DD9D492BE0; Thu, 23 Nov 2023 15:02:39 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E19B71800DDE; Thu, 23 Nov 2023 16:02:34 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , =?UTF-8?q?L=C3=A1szl=C3=B3=20=C3=89rsek?= , Gerd Hoffmann Subject: [edk2-devel] [PATCH 5/7] OvmfPkg/VirtMmCommunicationDxe: stop on init failure Date: Thu, 23 Nov 2023 16:02:32 +0100 Message-ID: <20231123150234.117835-6-kraxel@redhat.com> In-Reply-To: <20231123150234.117835-1-kraxel@redhat.com> References: <20231123150234.117835-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: CtYrOWs3c8jBf5NoAgSUcp7Mx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1700751763275100007 Content-Type: text/plain; charset="utf-8"; x-default="true" Print an error and stop in case VirtMmCommunicationDxe initialization fails. Signed-off-by: Gerd Hoffmann --- OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.inf | 1 + OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.c | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.inf b/OvmfP= kg/VirtMmCommunicationDxe/VirtMmCommunication.inf index 1403e92e1d6d..08fadefa5275 100644 --- a/OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.inf +++ b/OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.inf @@ -36,6 +36,7 @@ [LibraryClasses] [FeaturePcd] gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache #= # CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics #= # CONSUMES + gUefiOvmfPkgTokenSpaceGuid.PcdQemuVarsRequire #= # CONSUMES =20 [Protocols] gEfiMmCommunication2ProtocolGuid ## PRODUCES diff --git a/OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.c b/OvmfPkg= /VirtMmCommunicationDxe/VirtMmCommunication.c index 7b4ebe1257c6..c33561b39f9b 100644 --- a/OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.c +++ b/OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.c @@ -376,5 +376,15 @@ VirtMmCommunication2Initialize ( FreePages (mCommunicateBuffer, EFI_SIZE_TO_PAGES (MAX_BUFFER_SIZE)); =20 ReturnErrorStatus: + if (FeaturePcdGet (PcdQemuVarsRequire)) { + DEBUG (( + DEBUG_ERROR, + "ERROR: qemu uefi variable service is not available, use \n" + " 'qemu-system-x86_64 -device uefi-vars-isa' or\n" + " 'qemu-system-aarch64 -machine virt,x-uefi-vars=3Don'\n" + )); + CpuDeadLoop (); + } + return EFI_INVALID_PARAMETER; } --=20 2.42.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111680): https://edk2.groups.io/g/devel/message/111680 Mute This Topic: https://groups.io/mt/102767937/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-