From nobody Tue Feb 10 04:15:04 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+76994+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+76994+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1624457236; cv=none; d=zohomail.com; s=zohoarc; b=QM3eyw5C8Quh88THRMNI0EtfUW61FtdGrY/iRQZpkvC+8YxCcVUO89V/hwEB4mudCZ4Q9MbvkouDClttO1B5ilG30ZC1ATD7RV5XiNIubNAkOXfttUwRtnkIomCQLeTCilVQWSxejWkc7+tE0EpKQQTfZ9EUds7usY3vgh67ClQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624457236; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=VH21a5qgiXNh6r2dKWJI777CArZc2y1Zdct4oJoedVQ=; b=GnE4gZqCIsPFRiJ4LXWTztuJQfQJ5CSg/N8/uSg1K1i4N6wJnV1lTfKyFgr/XZxdxWylLS0T265KjfAaC12PQD92YXxzGJ/QcGuLd6+TUccl73X+Fv4pxRynlhj60St2Ucf9H/fnaZ9o0NHNpgEfGKSZweOFmYBY8UEPqvja480= 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+76994+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 1624457236321211.35128915287987; Wed, 23 Jun 2021 07:07:16 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Cc5JYY1788612xZqzYE3ffFU; Wed, 23 Jun 2021 07:07:16 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web09.8216.1624457228070923675 for ; Wed, 23 Jun 2021 07:07:08 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id ACC1FED1; Wed, 23 Jun 2021 07:07:07 -0700 (PDT) X-Received: from e120189.arm.com (unknown [10.57.78.245]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BA5A23F718; Wed, 23 Jun 2021 07:07:05 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Sami Mujawar , Laszlo Ersek Cc: Ard Biesheuvel , Leif Lindholm , Akanksha Jain , Alexandru Elisei Subject: [edk2-devel] [PATCH v1 4/5] ArmVirtPkg: Enable ACPI support for Kvmtool Date: Wed, 23 Jun 2021 15:06:39 +0100 Message-Id: <20210623140640.16754-5-Pierre.Gondois@arm.com> In-Reply-To: <20210623140640.16754-1-Pierre.Gondois@arm.com> References: <20210623140640.16754-1-Pierre.Gondois@arm.com> Precedence: Bulk List-Unsubscribe: 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,pierre.gondois@arm.com X-Gm-Message-State: ZKin7MNCmQlwyyKU7JwQBzdOx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1624457236; bh=jEmRG3RBRx7KDn7J5zJ4QQylnDYt8roPr24WCYHhD9I=; h=Cc:Date:From:Reply-To:Subject:To; b=pB0oHtIknlfPeZUk3NYMX7aZEymgcDMfbmlJcRZfnWOX9f4JWc+Js3Mb5Kus/EALNxm l9OVXfFmz2amQzVnpxxLwnCS8JKcIq0j9JFXR9WdUQvYuLXjnxw6UsOYlzfVLKp1/ZMRE YueJ6B/TUpEPYCDlzSHoy1NF7PNAMGhTjGk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Sami Mujawar A Configuration Manager that uses the Dynamic Tables framework to generate ACPI tables for Kvmtool Guests has been provided. This Configuration Manager uses the FdtHwInfoParser module to parse the Kvmtool Device Tree and generate the required Configuration Manager objects for generating the ACPI tables. Therefore, enable ACPI table generation for Kvmtool. Signed-off-by: Sami Mujawar Signed-off-by: Pierre Gondois Acked-by: Laszlo Ersek --- ArmVirtPkg/ArmVirtKvmTool.dsc | 15 +++++++++++++-- ArmVirtPkg/ArmVirtKvmTool.fdf | 11 +++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ArmVirtPkg/ArmVirtKvmTool.dsc b/ArmVirtPkg/ArmVirtKvmTool.dsc index 920880796ac2..b02324312f18 100644 --- a/ArmVirtPkg/ArmVirtKvmTool.dsc +++ b/ArmVirtPkg/ArmVirtKvmTool.dsc @@ -28,6 +28,7 @@ [Defines] FLASH_DEFINITION =3D ArmVirtPkg/ArmVirtKvmTool.fdf =20 !include ArmVirtPkg/ArmVirt.dsc.inc +!include DynamicTablesPkg/DynamicTables.dsc.inc =20 !include MdePkg/MdeLibs.dsc.inc =20 @@ -144,6 +145,11 @@ [PcdsFixedAtBuild.common] # gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16 =20 + # + # ACPI Table Version + # + gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20 + [PcdsPatchableInModule.common] # # This will be overridden in the code @@ -198,8 +204,8 @@ [PcdsDynamicDefault.common] gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480 =20 - ## Force DTB - gArmVirtTokenSpaceGuid.PcdForceNoAcpi|TRUE + ## Set default option to ACPI + gArmVirtTokenSpaceGuid.PcdForceNoAcpi|FALSE =20 # Setup Flash storage variables gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0 @@ -356,3 +362,8 @@ [Components.common] } OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf OvmfPkg/Virtio10Dxe/Virtio10.inf + # + # ACPI Support + # + MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf + ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManagerDxe.inf diff --git a/ArmVirtPkg/ArmVirtKvmTool.fdf b/ArmVirtPkg/ArmVirtKvmTool.fdf index 076155199905..5ba4c579f050 100644 --- a/ArmVirtPkg/ArmVirtKvmTool.fdf +++ b/ArmVirtPkg/ArmVirtKvmTool.fdf @@ -204,6 +204,17 @@ [FV.FvMain] INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf INF OvmfPkg/Virtio10Dxe/Virtio10.inf =20 + # + # ACPI Support + # + INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf + # + # Dynamic Table fdf + # + !include DynamicTablesPkg/DynamicTables.fdf.inc + + INF ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManagerDxe.inf + # # TianoCore logo (splash screen) # --=20 2.17.1 -=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 (#76994): https://edk2.groups.io/g/devel/message/76994 Mute This Topic: https://groups.io/mt/83738490/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-