From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web10.4248.1646373379304792736 for ; Thu, 03 Mar 2022 21:56:19 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=FCq5fP7Y; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: jiewen.yao@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646373379; x=1677909379; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=0dLuLn8HuCv6TGDzdIW//AOtdy8sdzFXzCgSOSOYy5w=; b=FCq5fP7YNHyfKRLhK3Lxf7PWp/sKBnL5Kt/a+xgLNyN57zqgD5HgKRN3 h3so4FmMwnJoMcyHbzwyAIfzC4QeCqPO8BkZ68KMNHLlDSuO8VpszPGuW hOLKMJ/VypsAI3oxA59FiBmJPOPNxG3v+p/GyCzvZIL066YI1BGmJ85Wc HUsQkRrz/4R0emeYEwJejue2KgAPBviyP+pUNDsZ1EbKmVfB+jk997MzS GHDHfLOxTOyty+X4AnU1v+9k+SG9ZBgEimsyRdxRr5VM2HobXT0lrg0kZ fSmO9hMS0LrUlvGC5oDhVFgmCkU5MKDZ0ewPYn/d5gedJIhksGHew/39w g==; X-IronPort-AV: E=McAfee;i="6200,9189,10275"; a="233862540" X-IronPort-AV: E=Sophos;i="5.90,154,1643702400"; d="scan'208";a="233862540" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 21:56:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,154,1643702400"; d="scan'208";a="546132552" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga007.fm.intel.com with ESMTP; 03 Mar 2022 21:56:18 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 3 Mar 2022 21:56:17 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 3 Mar 2022 21:56:17 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Thu, 3 Mar 2022 21:56:17 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Thu, 3 Mar 2022 21:56:16 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fnrq+8F1Uyjnp4RXqFyQLoFlSdPQ15DB+bUIosUvjtQ85yxxdXdThD+MaH66a+hmr308BGe9H86xXOj82jGt1yP+gaw6FsYKDZ77GH/Rt3oXF53XzluOMnW6fEIe4VYDP1Qht+ejvAnq0LHH/kCNPV50mpOotFl8zavtD6FwlLUwZxcJ5iVCVGKNjjwmIgEH5Mk1xwpOY1+wyKbhB9wTYIpPELVoYSOSJBiMNzZsqGfarC+XIg1IcvAei3bSx8U52DtzdtjCZt14PdK+DhSV8aPx3keRgpKjP/wU3AewKt0TcXbrMIdO68kopNRj6RkCmpxtOWY1yRWjvDi2UptiaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=v/xJtxGH1mZCDl0MvSKdHZNo0PJQlLqaqHozF5C3D7Q=; b=gaDCT8BFWbnkMPEovqW1wCSzGjeUwga6jEQtLGB/GC7aw6pkWYV5wytdd8SFKGXxWosGynuDmEaEw4U9IgnQGcs3unicxDTXkIYqgOMESW6Ull7Yv/Lt1OOu5MkaU3t/VgweWWbscUzCHzBaTYSSlyiEtr9zwWPyY8fGcpthnmDZZnUQ/TxOPfk/k70xuukBcW7TogEH1t8RzIacbjwYPG/VKQ/PdCVs16k0tuCDGMgfjDqE4Zsu0GI1FhK7DUc1XNVTYj+6yubgcGJ2bB/ccpjmLy4fYpn4U1WfA6BGdeb3GNdJQU/qzL0xaEHc0E0lzQ6KAe2yV5wbGfM6v6+Z2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by BY5PR11MB4085.namprd11.prod.outlook.com (2603:10b6:a03:18d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Fri, 4 Mar 2022 05:56:09 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::21db:e2fd:b9a3:9292]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::21db:e2fd:b9a3:9292%6]) with mapi id 15.20.5038.014; Fri, 4 Mar 2022 05:56:09 +0000 From: "Yao, Jiewen" To: "devel@edk2.groups.io" , "Yao, Jiewen" , "Boeuf, Sebastien" CC: "Justen, Jordan L" , "kraxel@redhat.com" Subject: Re: [edk2-devel] [PATCH v6 0/8] CloudHv: Rely on PVH boot specification Thread-Topic: [edk2-devel] [PATCH v6 0/8] CloudHv: Rely on PVH boot specification Thread-Index: AQHYLjnhn9CoDvVtqkSsCVdULkPolKyuvA6AgAAAc5A= Date: Fri, 4 Mar 2022 05:56:09 +0000 Message-ID: References: <16D917C710D2521F.18002@groups.io> In-Reply-To: <16D917C710D2521F.18002@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.401.20 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 293e8112-4a42-408e-99a5-08d9fda3ae52 x-ms-traffictypediagnostic: BY5PR11MB4085:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: llMN0KUH4w/bqJQ9fP1bmpex0kPH79s1/RMj/aeU9DhcyGWIqjdefz/W0nUg8oP+P0OPWkoUxEzmsL0Ja0fVTFN0mn+0uU9Jnx5CMGnZCLndjmFs2lgf3rFWwXsQSO3UXT3Xb08RlyjrhNkK7B9N6DSqJS4LchmG3WmWIleqoWYUiao9HuPO5kCz8v8/qPZPENqJ9ykWEBEGHDaVDRGRBugHDgFDmdQt5qxhe+7VSMULCLXxBOWA1ibNQplHXov4DriAwyZX9+z/uWuQS8f6sysEitaP1NYH9wXx6uAgFQMO9Hhcl/9sosWqk5aYPUbteWlWmZyZjRonBJqPSf3uCm2OzvzRqTlFt4zl6AT1gIpOZ5iQm5/4IZ2IZKNVezdOImG8NfBqNh6Krm62klSElDLnStmuOG0rFgLYqo5YaNLaE4u6nVMFjn8iv5FlZZm4C+3T69PBlIpbR1vWtCkQOLiE8pJeaJ1v0xjorNSLsMjHtTL/1h39stQG9WYPg7jVhwMJ2FaysybUFVSW7SKPXDzHril1itbU3+Zx8moZfUY4fTu5feYrB/OlRJPRLShpLr6eCjN2wubYIONRNNB9d9raGoJgve2OxgiVTp8urh+ALLNVH/gm9iE5hUWL4NgFY64eUlZu+rlZWH043r3f8jPGSsSFBLTR2Zcs3Sd0KTGcdpGB8uIXnismFSAW3QLDuinCkjscYFK9Hk04t9JUlIToLm+jlj3QyuIGmiU/HskvVwPl8NtZKC8opV0dU5NTzaTXe0IPJLhqvnvHagdzI/6C+91ofnfWkrBImenrXVhcOM74oDkNbfX08dHFDoHWYXvDls5ikAGasXs6NQ3beQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5872.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(54906003)(316002)(8936002)(966005)(66476007)(64756008)(66446008)(8676002)(19627235002)(52536014)(4326008)(83380400001)(26005)(71200400001)(6636002)(2906002)(86362001)(38070700005)(110136005)(5660300002)(508600001)(76116006)(66556008)(66946007)(7696005)(9686003)(6506007)(53546011)(82960400001)(122000001)(38100700002)(186003)(33656002)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HiGphTVlQ//aNQFnPMR9btLABW8SXgGvkc314Aa5O5LMLbqts1WgwiWxT/RO?= =?us-ascii?Q?iwfFHZoZUO2JZgcvfg7ILbg2Z9M8ZkagoITLBXtOwAaqwSavrdjA7J0wnk9i?= =?us-ascii?Q?ltUHEf8NkFVhRFeiwKZN/+fiMMR3SZ1/r8ps588yPtC7TFr5ZaK97bHaM0Eq?= =?us-ascii?Q?+Wi3MFmqo0gg9ZXjeojbPPHFFPewXRbpyepOQXLE/vn39/15ysq8Mzrd1hAm?= =?us-ascii?Q?c3g8MgslTt+9/9sbFikZ7TspHDKD2VLBSvvLFdIoAWDRn0m5q/R+90Sx0tok?= =?us-ascii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LE6an/ra20r+fnFu?= =?us-ascii?Q?8KxR236mD9GMwPUqXU6UCnwAxTk2maLZ7ZYmcbDYR8Y/YQNAOom2T5UwmOLn?= =?us-ascii?Q?mVQ4n0HclI9LACYksTHe6hPtntghNuF4w57Ba8MmYuniWrIFoGdz6SzIQ8eV?= =?us-ascii?Q?nC1JDUfyAb6fRilJbqtsnYSBO6J1adp1txzWDLtXk3imNl7eeIwQXaPKyANj?= =?us-ascii?Q?fHThfNiUYyuA8vRLU+VkW7rLID9kapP8rZgOlI75voKRFXw2hw46TglJISb1?= =?us-ascii?Q?11tqvDc0/osVRdvPDFK+a0Gz5RG1kEMeQyOlNlJBFhT2LbQDlAOKJ3B1Fo/b?= =?us-ascii?Q?Jjoqk8tF0RytUANNLwP1zm3/Xr8MHLFjWJ7lGhrqOCkNqmkVnkO5otXFYExA?= =?us-ascii?Q?CH0X+wucr+O/CQq6K+Ze7FLlI91ZJyD6zesWa6wamEKDjkbmI0XmqibfYOIA?= =?us-ascii?Q?SMLJmS6RVIYmcq51vuwZVsI=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 293e8112-4a42-408e-99a5-08d9fda3ae52 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2022 05:56:09.4687 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fTX+3R0bvWFPsI5eWmBwvLWP3NeKZa9E6sP+oST+G0JTwUaDxRplGVm3h+NCqAIjoyx9L3O03cfIRpLvByCQ6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4085 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Pushed 26af69d..dd3b1f2 https://github.com/tianocore/edk2/pull/2584 > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Yao, Jiewe= n > Sent: Friday, March 4, 2022 1:55 PM > To: Boeuf, Sebastien ; devel@edk2.groups.io > Cc: Justen, Jordan L ; kraxel@redhat.com > Subject: Re: [edk2-devel] [PATCH v6 0/8] CloudHv: Rely on PVH boot > specification >=20 > Series Reviewed-by: Jiewen.Yao@intel.com. >=20 > > -----Original Message----- > > From: Boeuf, Sebastien > > Sent: Wednesday, March 2, 2022 9:31 PM > > To: devel@edk2.groups.io > > Cc: Yao, Jiewen ; Justen, Jordan L > > ; kraxel@redhat.com; Boeuf, Sebastien > > > > Subject: [PATCH v6 0/8] CloudHv: Rely on PVH boot specification > > > > 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 t= o > > 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 table= s > > 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 informatio= n > > through the PVH memmap entries rather than relying on the emulated CMOS= . > > > > Signed-off-by: Sebastien Boeuf > > > > Sebastien Boeuf (8): > > 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: CloudHv: Remove VARS and CODE sections > > 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/XenElfHeader.fdf.inc | 42 ++++++ > > 12 files changed, 390 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 >=20 >=20 >=20 >=20 >=20