From nobody Mon Jun 12 13:18:44 2023 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qfsrz6zPdz4cBfk for ; Mon, 12 Jun 2023 13:26:11 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qfsrz6WzPz43fQ; Mon, 12 Jun 2023 13:26:11 +0000 (UTC) (envelope-from corvink@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686576371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jClN5/X9Aeo75n7KGHHy0lOsjmV7Ed6PUzhJY+HFhxw=; b=bhT/sK9q5cajmrMpoBSM30WAoFLODnCX5SDJ6iMhzwD94/vOaKaW4m+hTOchVZ/We/9dpa fsgg/qLWfxtZgOvoKQ/MkBFeAWMb2lMpdnClSldL6Mp+CRS1DzXcAbCidejLPsJukvr3LM Jwf1EGkcTGGdKYJWhOnzm/JoN2yWTgPqamfxwwEbQ9NAlLILggKMTD+B8W5Y9uXheXjb/I Rf/cnn/VoVmX9g2u2ucjIExyEeD1U1HS2z8kRE1GWflrYlgCsvOzVa7+ajwTXXiTg8jzgE Vw9yjcvifeZmNaIosHJRaKXVja71/72KuBas5PPNSgtq1/AWyemIBOQKwJcL1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686576371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jClN5/X9Aeo75n7KGHHy0lOsjmV7Ed6PUzhJY+HFhxw=; b=nMpL4ZBg3ngo6DYgSTNJdcS/+BEPe4BVpEsCj3AWukuQhbJBC3kYGbnxtWzKDRqFSkse/n xHLOr6JspNC810SqyyQS0mJCTOsZHCmzp0g2+MLAHZmqldGh5edqXK1cZShDCm/pmx8kCs udhOekBr9l8YIroqlnUQIgtrfCw2xN4JzKh6UKoO4NnjEy1xioUJH8UYqXZ7IUXU7SH5A3 VFUvThMz71HwHKDBFGBqirTXnBX+wRlDtQsMHPhqZjVTaryZGIVXe5bLBh7amf6z1IrZ3+ DijdUGaZVwYRUPOATYPx/nr07DYHSpAQfx8uqQUUVGktorC70C4OloytwsR+oQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686576371; a=rsa-sha256; cv=none; b=HSSdDxHMDAy9HOhzl+Syvrjh9yD6AINM+nTeIJGcJl2qrnyohs0+Oi04on6TpK/EalHeQr kEiyIglHpUhoZopGV1rxzTEUlx7HNqTfAlHJtdUxUgwrf80kWKOxQ2UprhnF5R1a+O0aLc aSY1f0MT3ptokSbg/fjfTVUX6NBIbFupJFiVO+GKIKfouS/fW/sPp48fd/EmSCHujlHSVF 8BaX0XfKwtoE3ajwYWuocdKf0akNVNEyNZWIDDfGz7ob/GnhOF2tNX47ngNgLxPbOLVTyx fF5vV1EREp+CqkFIf7GQgXVcZTslGhVcfH6zWpVKEC1LiV7r3y9EUWbaMDeRhA== Received: from corvink-nb.beckhoff.com (unknown [195.226.174.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: corvink) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Qfsrz2gdMzPKw; Mon, 12 Jun 2023 13:26:11 +0000 (UTC) (envelope-from corvink@FreeBSD.org) From: =?UTF-8?q?Corvin=20K=C3=B6hne?= To: virtualization@freebsd.org Cc: =?UTF-8?q?Corvin=20K=C3=B6hne?= Subject: [PATCH 0/5] OvmfPkg/Bhyve: install ACPI tables by FwCfg Date: Mon, 12 Jun 2023 15:18:44 +0200 Message-ID: <20230612132558.349152-1-corvink@FreeBSD.org> X-Mailer: git-send-email 2.41.0 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ThisMailContainsUnwantedMimeParts: N Hi, this is the next patch stack for EDKII. Bhyve is able to pass ACPI tables to the guest by FwCfg. This is more flexible and less space limited than our current approach of placing ACPI tables into memory. So, this patch stack modifes the guest firmware to pick up ACPI tables from FwCfg. If that's not possible, it's falls back to our old approach of picking up ACPI tables from memory. Any feedback, even if it's just a short "Looks good" or "Keep going", is appreciated. Kind regards, Corvin Corvin Köhne (5): OvmfPkg: move PciEncoding into AcpiPlatformLib OvmfPkg: move BootScript into AcpiPlatformLib OvmfPkg: move QemuFwCfgAcpi into AcpiPlatformLib OvmfPkg: avoid including AcpiPlatformLib twice OvmfPkg/Bhyve: install Acpi tables provided by FwCfg OvmfPkg/OvmfPkgX64.dsc | 1 + OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf | 10 +- .../Bhyve/AcpiPlatformDxe/AcpiPlatformDxe.inf | 1 - .../AcpiPlatformLib/DxeAcpiPlatformLib.inf | 14 ++ OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h | 51 ---- OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.h | 17 -- OvmfPkg/Include/Library/AcpiPlatformLib.h | 56 +++++ OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c | 3 + OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c | 5 + OvmfPkg/Bhyve/AcpiPlatformDxe/PciDecoding.c | 232 ------------------ .../AcpiPlatformLib}/BootScript.c | 3 +- .../AcpiPlatformLib}/PciDecoding.c | 3 +- .../AcpiPlatformLib}/QemuFwCfgAcpi.c | 3 +- 13 files changed, 83 insertions(+), 316 deletions(-) delete mode 100644 OvmfPkg/Bhyve/AcpiPlatformDxe/PciDecoding.c rename OvmfPkg/{AcpiPlatformDxe => Library/AcpiPlatformLib}/BootScript.c (96%) rename OvmfPkg/{AcpiPlatformDxe => Library/AcpiPlatformLib}/PciDecoding.c (96%) rename OvmfPkg/{AcpiPlatformDxe => Library/AcpiPlatformLib}/QemuFwCfgAcpi.c (96%) -- 2.41.0