From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web09.8039.1646141365833468085 for ; Tue, 01 Mar 2022 05:29:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=ZcrXZGDc; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: sebastien.boeuf@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646141365; x=1677677365; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=eg9LC/TeObwAh906wEgI9Lp2vcrRwByHIPcRbd/CELg=; b=ZcrXZGDc9REDeuJHmhquCVzdHHs7SQ2bnngpVRBgQ1NLS3FFxygVyN4L 9wi8+qm3FMSbGPy8iyzyMKv0aCDT2MjEe1/5uRDrl5AkGoPSPdrsbBtRy vXsbqoZvFD6JOmed9l60GnFFvHNeQG6TL3zUn1LfUHQ34PatPE+Tv+VX+ 5bc4zrXtx8IgnsOiBVcRJw0R+AiscSmJXqScUo4lXUsd5uslZfbuNn5jS FKTRf7/pUGwEzVE4u9Mfo0loAp0Xc3rJPhLlAMYGke8HdB60awddn886+ 6JBDwKLi5co/lymu9+tSFMiF72Lh8WeFscBv/MTWZihEld9EAnCet5b6Z A==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="253320758" X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="253320758" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 05:29:25 -0800 X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="550711482" Received: from jashipm-mobl.amr.corp.intel.com (HELO sboeuf-mobl.home) ([10.252.27.150]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 05:29:23 -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 v5 0/7] CloudHv: Rely on PVH boot specification Date: Tue, 1 Mar 2022 14:29:10 +0100 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: Sebastien Boeuf Cloud Hypervisor aims at emulating the minimal amount of legacy devices and this is why the PVH boot specification is supported. The point is to be able to share some information with the guest without the need for emulating devices that would be present on real hardware. Since Cloud Hypervisor supports loading a PVH ELF binary, the CloudHv target is updated to be generated as such. Relying on the PVH boot specification, we don't need to hardcode the location of the ACPI tables anymore since we can retrieve the RSDP address from the hvm_start_info structure. Same thing for the RAM below 4G, we can find this information through the PVH memmap entries rather than relying on the emulated CMOS. Signed-off-by: Sebastien Boeuf Sebastien Boeuf (7): OvmfPkg: Make the Xen ELF header generator more flexible OvmfPkg: Xen: Use a new fdf include for the PVH ELF header OvmfPkg: Xen: Generate fdf include file from ELF header generator OvmfPkg: Generate CloudHv as a PVH ELF binary OvmfPkg: CloudHv: Retrieve RSDP address from PVH OvmfPkg: CloudHv: Rely on PVH memmap instead of CMOS OvmfPkg: CloudHv: Add README OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf | 2 + OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c | 39 ++++-- OvmfPkg/CloudHv/CloudHvElfHeader.fdf.inc | 54 ++++++++ OvmfPkg/CloudHv/CloudHvX64.dsc | 2 +- OvmfPkg/CloudHv/CloudHvX64.fdf | 40 ++---- OvmfPkg/CloudHv/README | 67 ++++++++++ OvmfPkg/Include/IndustryStandard/CloudHv.h | 5 - OvmfPkg/OvmfXen.fdf | 57 +------- OvmfPkg/OvmfXenElfHeaderGenerator.c | 141 +++++++++++++++----- OvmfPkg/PlatformPei/MemDetect.c | 73 ++++++++++ OvmfPkg/PlatformPei/PlatformPei.inf | 2 + OvmfPkg/VarStore.fdf.inc | 1 + OvmfPkg/XenElfHeader.fdf.inc | 42 ++++++ 13 files changed, 391 insertions(+), 134 deletions(-) create mode 100644 OvmfPkg/CloudHv/CloudHvElfHeader.fdf.inc create mode 100644 OvmfPkg/CloudHv/README create mode 100644 OvmfPkg/XenElfHeader.fdf.inc -- 2.32.0 --------------------------------------------------------------------- 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.