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.web10.4240.1646373281975983919 for ; Thu, 03 Mar 2022 21:54:42 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=JsrF1Wme; spf=pass (domain: intel.com, ip: 134.134.136.24, 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=1646373282; x=1677909282; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=M0cjW2xvUVguBEJVsUhWAdYJ6hh26w860dF5L79atpA=; b=JsrF1WmerDw7tNKYbTz6hQlAan9msDVeTjuP6szxc5dd0ScjQxRy9ZnR hiztCh8LgV8rKIVGdiNoGVSzCLYpQ5rSvFBTfKiLF2XqS+sQybLK3C4MW LKX3vxtv+aNe8i20opeAPuyxue5kCcn0kXystsdgFk9mkmmkWquoP3xeU 5x/GVO4oG5FCzmDvJ/x2oo30nRsUpH6WKFrmHhWjVnP6hchbavceIdHBA TSfocNKV3/7Pulsl/xNfv/rbOc+Zt4NmNii/NfiamhEqX8s5ybAtM+m9Z fHSZRjBhgU36fLDhB8EwaI2va3SG/QoCLQZFPfERP01POhH5hh1OZBn2u g==; X-IronPort-AV: E=McAfee;i="6200,9189,10275"; a="253633408" X-IronPort-AV: E=Sophos;i="5.90,154,1643702400"; d="scan'208";a="253633408" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 21:54:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,154,1643702400"; d="scan'208";a="686780156" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga001.fm.intel.com with ESMTP; 03 Mar 2022 21:54:40 -0800 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx604.amr.corp.intel.com (10.18.126.84) 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:54:40 -0800 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx609.amr.corp.intel.com (10.18.126.89) 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:54:40 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx604.amr.corp.intel.com (10.18.126.84) 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:54:40 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.108) by edgegateway.intel.com (192.55.55.71) 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:54:40 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dJ4gcKor7i0CW+txyWTJf7NQ0mJ1xp3dh7jmbwoX3VGmil2kFVXHtM23T/firElg/BjtRxcMEiV1dQznqhG080u19ZiXAdhhvxFs+ddERyLP/l23E9Urk/5F+1ZbD7QAbi+G/vdaNezaLm4D2TbSGxO35KNhHfAavKNazU8bKfSeV5dUtacHi9a0UG7uof9FAMO8V0JFHs7eY3CUOGc87ly4rECKjcs+i/YNQATByVMoWsYm6iTdqfXZ8Hg5Wi3+x8aeffpwqW/osFF2xQqzscKAbkBlQbku1BTKalCcJt0aqwR5/y5LKW0srB+N/BFAxZAQBsXI0vOtjRslF1rDBw== 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=EE9tuvYIfaYm46VmcsZM3Uz30T68TPNASQj85wlYwgo=; b=b3MDjbDVexeUcCIjnn1ISsA0n6Kw8RJikndX6Tmq/kbfZL1sUDFN1Zcz4vX4gjBnAqYHHl8XicSD5EBlQ5cwHq9WYJpuJEob4fHiduYXH0zJuL8zFkjN16xVtRfF62oDQjpwx8TyTDGUveC8irDDjasu3yWFeeEGdl6W4qiDQG0gMpu8jzQ2MxqA7/SFwT3ccsl1SG/7OlQ93dhbMyaQz/WI6oCIqsuuYCkawSQ835w2sLU42jPRsLwnh3K84lYwTOdLbvnm3PpuQQrD2Ufh2pwWzfPSgcNxci9nnAhKJN/mEANYS+H454x1FLn9osYF49x0Y5PRKlMukjgIyuJRBw== 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:54:37 +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:54:37 +0000 From: "Yao, Jiewen" To: "Boeuf, Sebastien" , "devel@edk2.groups.io" CC: "Justen, Jordan L" , "kraxel@redhat.com" Subject: Re: [PATCH v6 0/8] CloudHv: Rely on PVH boot specification Thread-Topic: [PATCH v6 0/8] CloudHv: Rely on PVH boot specification Thread-Index: AQHYLjnhn9CoDvVtqkSsCVdULkPolKyuvA6A Date: Fri, 4 Mar 2022 05:54:37 +0000 Message-ID: References: In-Reply-To: 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: 80885474-cd26-4e0e-80d7-08d9fda3777b 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: hil6G/juhemgvqRhw4qOI215zLuGJAclYsd1oRl8zVqVVx92q/jKKVjH6emphXpRpn3vGCjIHUZgGIHMpoldwkrIYJ/pyj6QwJ6hoQtr/mo0dQr9SqtKO0TW6wTwrnfI9yQrBgLCiwJol5XoUymmutNo8q+RHxDrL1gVZL+8ZaoFaf8F92jjiglal3h82cV9Gc+87T1XXoAqxqn9NGHQU5eHKyB1qfMdNYpIefss1mWyoP+U5jM5VxH9aGVWFb+Pb4PQhxPC6rg5iB725RGlsWjxKhaDV7AAZzKbnMja27XIaCnVjcwBEV3KG9l0URCGRFjIIsSPOU5Fo2C8AAnVsGHw5qxBMY/7345cVYZZJBCMzOKygBZD1rvgcHNQuAwPNoPNRjrZrznBW1P0UYGQpiLY5Xib3YRQFwwitHcvkSgihlb9ZLA2IWErpwSv5cALtYx/HNVMzePvrXeONcLliwxpiAMpaSJSPR0K9fo4qcJow02NGNciBPWQ+EFk4LjA1KezNgzcPbRKGETnXw3WoGjTqdwYSqXJFE7TYX9NxNjSywoVgfEP10XRF8VIjFom69pGlU0CE6wyjMqtwwTdBNkAI0CQdDdj8Y8xmSTwjqwX2uAYT9Ze73tbyZfgidnMruCx6hRd5euUHZefk/EcJ6Bt+CczS4krk4PtH5+qxeVKoAdcJNru5bYIn+e1ZL/usXmW4rX6V5KsQRq5TnAFAQ== 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)(66476007)(64756008)(66446008)(8676002)(19627235002)(52536014)(4326008)(83380400001)(26005)(71200400001)(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?uGlJRvaQBmVuy92+lHOjgj+Q+aqBBPh6BldSKu+OFVTrgxWc4x2T0a9uelM0?= =?us-ascii?Q?JcQGDA13I4byhjQg8ftcjtkm2S2QW2SpTMQRzC8vGOW+rEYnUBluCsrv2izh?= =?us-ascii?Q?n/EoB6wQAfjXmtw6OBlm/tLIw4SiRpjs1CYgp6k6hF0WHNCt1so7vw10+ovm?= =?us-ascii?Q?b9vzWrILj1ReA1dFm5cDjfYLJb20ho2Dgh+b61udQcmEafNt81lSIi9GCFrT?= =?us-ascii?Q?+sz/gqS2dHPsz8JWMwCC/X6Lgqr88JQbQIUrF1M+rW3PL4/Pso6V48zLdJl6?= =?us-ascii?Q?NPlb6W/Db1RjbHXL4bUf7qTncBE/i3XwRTirZHjK6DYNWx+qrBYJn7iS/Dg8?= =?us-ascii?Q?zD6V7UhojcqLoFrrCrfJEd3t1rA17yVlhyx/m6vyWwkB4decKtPVE656JPtj?= =?us-ascii?Q?E/2of5dNYL6B/qwDJJmWEArVj8ax40PR0X8GLh6nKd7i26eAGDhE2P972Uy5?= =?us-ascii?Q?qGYGq+xUSynKy4CIaGNNDjhra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q?PkyS63lhCBxuMyTtpvN/Dc0dsdShuEiDiVkdvN/SSkcrrMQXZmr0KTEJ01iP?= =?us-ascii?Q?iVB1K1s0eXN+NTU0m69cYpm6I7W0CshcwOoYV/fwZWi75NZcv2y1fHU5UoRL?= =?us-ascii?Q?AHIhPnMhiUZS/Cr6S+TmkOnzleEp6xzKQlgsd5i19lmymNDX2KF9Zu/ILWRV?= =?us-ascii?Q?HTKr0nBSPqlVTAVHymsy8LPUI+5cbRNQCQpmX+IvCU5dmwO9eb3e43DNtNA/?= =?us-ascii?Q?7dtqZIJKLhlnwbEWOd4+3b0=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: 80885474-cd26-4e0e-80d7-08d9fda3777b X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2022 05:54:37.4309 (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: NV3Ti3Ki2kw/5Rkw2/+TBgq1OqU+auSXj8gnzkTEy4gujvrpngMWwjTjaD8q8RXiQHu9QNh7eANBcc3ArlzrRg== 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 Series Reviewed-by: Jiewen.Yao@intel.com. > -----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 >=20 > From: Sebastien Boeuf >=20 > 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. >=20 > 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. >=20 > Signed-off-by: Sebastien Boeuf >=20 > 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 >=20 > 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 >=20 > -- > 2.32.0