From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web10.8080.1639147329563743942 for ; Fri, 10 Dec 2021 06:42:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.com header.s=intel header.b=LcEsvHtv; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: sebastien.boeuf@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639147329; x=1670683329; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=satceX9THzfzARCkD+3S5n6cQZpJZQbbTttrwfOUqBc=; b=LcEsvHtvTz6+JPRNt+WvsA5/O25JlXvfuNkxhFu6FkrW6GO3w9ll67Rx ZfA026VFKmBuZdRoRHouyGpz3nyMMlHEuJPG+gGwDzAZKKpwDo3ckYb7V 4BHiBoGxUWsAYvmQPfOwj/eGBQ2DTd9wkfKueJ0eFVLmY94/k+SKTsFj8 CFu6vE8u1RTqD3eWaHGEGY0JFBwMusssPceClPOaIi4eJ3h5cUzAC0UCQ IlNZbGEe5RW4vKwD1c3JyNMBOFrnJ6ClKoirSiB7J+WnxroEtoyGZqpVY g+aodtvgQTrSHx92bcQRIOBnB64iedRTYV7zNc2qVLiYoQQ5Swvxr7Y9m w==; X-IronPort-AV: E=McAfee;i="6200,9189,10193"; a="299143134" X-IronPort-AV: E=Sophos;i="5.88,195,1635231600"; d="scan'208";a="299143134" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2021 06:42:09 -0800 X-IronPort-AV: E=Sophos;i="5.88,195,1635231600"; d="scan'208";a="503951468" Received: from gmarti2-mobl1.amr.corp.intel.com (HELO sboeuf-mobl.home) ([10.252.20.4]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2021 06:42:07 -0800 From: "Boeuf, Sebastien" To: devel@edk2.groups.io Cc: jiewen.yao@intel.com, jordan.l.justen@intel.com, kraxel@redhat.com, sebastien.boeuf@intel.com Subject: [PATCH v7 0/5] Add Cloud Hypervisor support for x86 Date: Fri, 10 Dec 2021 15:41:53 +0100 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: Sebastien Boeuf This series aims at adding the support for the Cloud Hypervisor platform to the OVMF firmware for x86 architecture. The goal is to allow the same binary to be used either by QEMU or Cloud Hypervisor, using the Cloud Hypervisor way as a fallback if the fw_cfg mechanism is not present. Sebastien Boeuf (5): OvmfPkg: Handle Cloud Hypervisor host bridge OvmfPkg: Create global entry point for SMBIOS parsing OvmfPkg: Retrieve SMBIOS from Cloud Hypervisor OvmfPkg: Generalize AcpiPlatformDxe OvmfPkg: Install ACPI tables for Cloud Hypervisor ArmVirtPkg/ArmVirtQemu.dsc | 2 +- ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 2 +- ArmVirtPkg/ArmVirtQemuKernel.dsc | 2 +- ...QemuFwCfgAcpiPlatform.c => AcpiPlatform.c} | 15 ++- OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h | 6 + ...cpiPlatformDxe.inf => AcpiPlatformDxe.inf} | 6 +- OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c | 118 ++++++++++++++++++ OvmfPkg/AmdSev/AmdSevX64.dsc | 2 +- OvmfPkg/AmdSev/AmdSevX64.fdf | 2 +- OvmfPkg/Include/IndustryStandard/CloudHv.h | 46 +++++++ OvmfPkg/Include/OvmfPlatforms.h | 1 + .../Library/AcpiTimerLib/BaseAcpiTimerLib.c | 3 + .../AcpiTimerLib/BaseRomAcpiTimerLib.c | 4 + .../Library/AcpiTimerLib/DxeAcpiTimerLib.c | 3 + .../PlatformBootManagerLib/BdsPlatform.c | 1 + .../ResetSystemLib/BaseResetShutdown.c | 3 + .../Library/ResetSystemLib/DxeResetShutdown.c | 13 +- OvmfPkg/Microvm/MicrovmX64.dsc | 2 +- OvmfPkg/Microvm/MicrovmX64.fdf | 2 +- OvmfPkg/OvmfPkgIa32.dsc | 2 +- OvmfPkg/OvmfPkgIa32.fdf | 2 +- OvmfPkg/OvmfPkgIa32X64.dsc | 2 +- OvmfPkg/OvmfPkgIa32X64.fdf | 2 +- OvmfPkg/OvmfPkgX64.dsc | 2 +- OvmfPkg/OvmfPkgX64.fdf | 2 +- OvmfPkg/PlatformPei/MemDetect.c | 9 +- OvmfPkg/PlatformPei/Platform.c | 8 ++ OvmfPkg/SmbiosPlatformDxe/CloudHv.c | 33 +++++ OvmfPkg/SmbiosPlatformDxe/EntryPoint.c | 52 ++++++++ OvmfPkg/SmbiosPlatformDxe/Qemu.c | 35 ------ OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h | 22 ++++ .../SmbiosPlatformDxe/SmbiosPlatformDxe.inf | 3 + 32 files changed, 351 insertions(+), 56 deletions(-) rename OvmfPkg/AcpiPlatformDxe/{QemuFwCfgAcpiPlatform.c => AcpiPlatform.c} (52%) rename OvmfPkg/AcpiPlatformDxe/{QemuFwCfgAcpiPlatformDxe.inf => AcpiPlatformDxe.inf} (87%) create mode 100644 OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c create mode 100644 OvmfPkg/Include/IndustryStandard/CloudHv.h create mode 100644 OvmfPkg/SmbiosPlatformDxe/CloudHv.c create mode 100644 OvmfPkg/SmbiosPlatformDxe/EntryPoint.c -- 2.30.2 --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.