From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 4B690D811A4 for ; Thu, 23 Nov 2023 15:02:50 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=fPY60ciwgCI3fSI4rBI1xNauksrqHqoCIL+Gw5ljbMo=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1700751769; v=1; b=u5ZzKjuSWrXgkw85q66eTma+tSXXTXluVbmn3TdJ/WJZaGQ6X6bi1mRkOr3HU80nXmiJNiv6 SavcNCBcK1VpQmSoC9rARuiJku6mmXWmTqhhBSmBik7cPugJ9Iolon8tSY7LS9Fh+/a3HCyrLKP thWme5i3sID+/GDR5qS60uNY= X-Received: by 127.0.0.2 with SMTP id VPGyYY7687511xhkRekY2J6k; Thu, 23 Nov 2023 07:02:49 -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.93020.1700751768398657253 for ; Thu, 23 Nov 2023 07:02:48 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-75-OfQrJ7L9NqWx8aAEqGXQAg-1; Thu, 23 Nov 2023 10:02:36 -0500 X-MC-Unique: OfQrJ7L9NqWx8aAEqGXQAg-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 476A985A58B for ; Thu, 23 Nov 2023 15:02:36 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.193.187]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0ED1B492BE0; Thu, 23 Nov 2023 15:02:36 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id D0EB318000A3; 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 0/7] Add VirtMmCommunication driver, enable for OVMF and ArmVirt. Date: Thu, 23 Nov 2023 16:02:27 +0100 Message-ID: <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: aLks1JUHXWh9NaUiKoW1XgFox7686176AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=u5ZzKjuS; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none) This is the edk2 side of the qemu patch series posted last week to qemu-devel: https://lists.gnu.org/archive/html/qemu-devel/2023-11/msg03714.html The driver forwards MM calls to the virtualization host instead of the MM code running in SMM (x64) or el3 (arm) mode. The functionality traditionally implemented by the SMM code is provided by qemu instead. This allows to provide persistent variable support without an (virtual) flash device and it also allows to support secure boot without depending on SMM or el3 emulation support in the hypervisor. take care, Gerd Gerd Hoffmann (7): OvmfPkg: add IndustryStandard/QemuUefiVars.h OvmfPkg: add new VirtMmCommunicationDxe driver OvmfPkg/OvmfPkgX64: add QEMU_VARS option OvmfPkg: add PcdQemuVarsRequire OvmfPkg/VirtMmCommunicationDxe: stop on init failure OvmfPkg/VirtMmCommunicationDxe: add arm support ArmVirtPkg/ArmVirtQemu: add QEMU_VARS option OvmfPkg/OvmfPkg.dec | 3 + ArmVirtPkg/ArmVirt.dsc.inc | 3 + ArmVirtPkg/ArmVirtQemu.dsc | 11 + ArmVirtPkg/ArmVirtQemuKernel.dsc | 11 + OvmfPkg/OvmfPkgX64.dsc | 17 +- OvmfPkg/OvmfPkgX64.fdf | 12 +- OvmfPkg/PlatformPei/PlatformPei.inf | 1 + .../VirtMmCommunication.inf | 67 +++ .../Include/IndustryStandard/QemuUefiVars.h | 41 ++ .../VirtMmCommunication.h | 37 ++ OvmfPkg/PlatformPei/Platform.c | 4 + OvmfPkg/VirtMmCommunicationDxe/QemuFdt.c | 208 ++++++++++ OvmfPkg/VirtMmCommunicationDxe/QemuX64.c | 106 +++++ .../VirtMmCommunication.c | 390 ++++++++++++++++++ ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 5 + 15 files changed, 914 insertions(+), 2 deletions(-) create mode 100644 OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.inf create mode 100644 OvmfPkg/Include/IndustryStandard/QemuUefiVars.h create mode 100644 OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.h create mode 100644 OvmfPkg/VirtMmCommunicationDxe/QemuFdt.c create mode 100644 OvmfPkg/VirtMmCommunicationDxe/QemuX64.c create mode 100644 OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.c -- 2.42.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111684): https://edk2.groups.io/g/devel/message/111684 Mute This Topic: https://groups.io/mt/102767943/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-