From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web09.14461.1645545205714426452 for ; Tue, 22 Feb 2022 07:53:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=DG789lFn; spf=pass (domain: intel.com, ip: 134.134.136.24, 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=1645545205; x=1677081205; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wVoHVGiHIMk6fxBfdD92Cy/PJZCyHAWbz6OHoPPzJxY=; b=DG789lFnnvD+D59oEAWhcfYV14JddEp32SWWAqQnkUwpcA+GAxNZEfwZ wg6eQpYwfrO7rwDK/pKdYi0G3haoJKHtsit678G+zofiCrXG9qhXk3ygH RaCMlDFoLyvlz/d+Sg3C7xmpTwKLBU1pkpLsE/o6p4LmaRJXiEvDGFQEf gOiQxiHWEND6VIoBeoCpfb7zDmE8qqHXtik8Gxi4Tl8FRLPhwnlJ5NTdF fpGi26emkgxL4uuhswo7jVxUGEb+xbWW4QD7BjvbpJ5NvnLg2RsjOcUsW BR7DgvTUf6Fp2cP/tA3iZInJ9Dib/EkzVqEJBtfiBV3y8ek/3Ov0Whvg9 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10266"; a="251478746" X-IronPort-AV: E=Sophos;i="5.88,387,1635231600"; d="scan'208";a="251478746" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 07:53:24 -0800 X-IronPort-AV: E=Sophos;i="5.88,387,1635231600"; d="scan'208";a="683560575" Received: from bmolloy-mobl1.ger.corp.intel.com (HELO sboeuf-mobl.home) ([10.252.22.166]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 07:53: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 0/3] CloudHv: Rely on PVH boot specification Date: Tue, 22 Feb 2022 16:53:03 +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 (3): 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/AcpiPlatformDxe/AcpiPlatformDxe.inf | 2 + OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c | 39 +++-- OvmfPkg/CloudHv/CloudHvElfHeaderGenerator.c | 150 ++++++++++++++++++++ OvmfPkg/CloudHv/CloudHvX64.dsc | 2 +- OvmfPkg/CloudHv/CloudHvX64.fdf | 95 ++++++++++++- OvmfPkg/Include/IndustryStandard/CloudHv.h | 5 - OvmfPkg/PlatformPei/MemDetect.c | 73 ++++++++++ OvmfPkg/PlatformPei/PlatformPei.inf | 2 + 8 files changed, 348 insertions(+), 20 deletions(-) create mode 100644 OvmfPkg/CloudHv/CloudHvElfHeaderGenerator.c -- 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.