From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web09.5049.1632468979301813351 for ; Fri, 24 Sep 2021 00:36:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=v6DsCign; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: jiewen.yao@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10116"; a="211097002" X-IronPort-AV: E=Sophos;i="5.85,319,1624345200"; d="scan'208";a="211097002" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 00:36:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,319,1624345200"; d="scan'208";a="436910796" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga003.jf.intel.com with ESMTP; 24 Sep 2021 00:36:13 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) 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.2242.12; Fri, 24 Sep 2021 00:36:13 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.2242.12 via Frontend Transport; Fri, 24 Sep 2021 00:36:12 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Fri, 24 Sep 2021 00:36:12 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=InOATe9942+I9BSwbxDr6GelbIIic2QTSwH8I2/cJkKAk1k8nsHjCAXDYUiwt5dvTxyW3/i1tGGvIbOY6nt6hjsX84pLVCJlmHQwUSzbxtmnHhghg6+j0+TGMfnfodE1stCiopDd6qvQ9n33tCeSiHHtGeCIgjI+YIe16fzFo2I9R5cDu2/UDwrlnKga631TrxxrpxqQe+KQVK8nnJ3A04uoUxOZjwx9jv4rAGCsmszLnjxoc0ebh2vk+0hQH5H/cd71aOuGoIOWYcse+OxLJvVlDPy+fjAe3nXzAdHsEh2svCqxDI11PjbTtgYKq8GVo+cn54SzEkZd4XxK6c83JA== 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; bh=0LFADHWFZ9XaluCW6Ja/w/1R6ZOizEuPTXZ+vBcQQfU=; b=QA9/4vhEUpT9/jJi+Hmbavjra9kpsnQpzWX6vd5yVEp1UieLVd62WJ8nofcNogXHaMKpBqp2lAmaqQmQfsaAWNua1aMmPGVIvWp3XlMmhiP2v28DiNKC7aBxHt0Cs9EeG+TzCuIWKuo8BvFjmyMlx6NxZ+fOqYE2r/YurDEF6/zro274QLGXxgCjIPZrGZ0OTExwCCQ6zXAXJg+hFSmDT+56fYAm8qfa/LwwTWK9vECPIGCVHO7+R4oAMIwGBfDLvb3ZLE+kEiB832FJCPRWZQIKMa2w4H8UOKxjqnNsMrmBeMRqiJPZBLHr1IQrGXHQm2N81Dz8ie+xMZBXoyYajw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0LFADHWFZ9XaluCW6Ja/w/1R6ZOizEuPTXZ+vBcQQfU=; b=v6DsCignWAurg3niFfR8tuSEd6YDKTmklgnVGapqsDSeKbo/NF6IzI2SlGH7hW6kNfLNgaPnTpsmJY0vSyWWJpXSVrYlVh6eZc5URMBwj6Zrshge8QQxvAGM66DZA56/L5KUGuoWw6KYWWyJTQHM/aoxLAqGTGDWWu1zfjmUdBw= Received: from SJ0PR11MB4894.namprd11.prod.outlook.com (2603:10b6:a03:2d4::5) by BYAPR11MB3832.namprd11.prod.outlook.com (2603:10b6:a03:ff::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.14; Fri, 24 Sep 2021 07:36:10 +0000 Received: from SJ0PR11MB4894.namprd11.prod.outlook.com ([fe80::f54c:e846:c8a8:9dc4]) by SJ0PR11MB4894.namprd11.prod.outlook.com ([fe80::f54c:e846:c8a8:9dc4%8]) with mapi id 15.20.4544.015; Fri, 24 Sep 2021 07:36:10 +0000 From: "Yao, Jiewen" To: Gerd Hoffmann CC: "Xu, Min M" , Brijesh Singh , "devel@edk2.groups.io" , Ard Biesheuvel , "Justen, Jordan L" , Erdem Aktas , James Bottomley , Tom Lendacky Subject: Re: [edk2-devel] [PATCH V7 1/1] OvmfPkg: Enable TDX in ResetVector Thread-Topic: [edk2-devel] [PATCH V7 1/1] OvmfPkg: Enable TDX in ResetVector Thread-Index: AQHXrsfv6qwUC8Li5kiwlPdQeu+jg6uvry6AgAEZ5ACAAIjkgIAALkqAgAAWigCAAAcDAIAAA09wgAAI9ICAAAMxAIAAAMeQgAEA24CAACBUMA== Date: Fri, 24 Sep 2021 07:36:10 +0000 Message-ID: References: <20210922074929.e5iwf24t6wyndgbu@sirius.home.kraxel.org> <20210923084821.yxizus3loa2p6hms@sirius.home.kraxel.org> <7c9aeb95-5c33-bd8d-4f0c-40133f4c7c3d@amd.com> <20210924053713.fy4ulz3ykbs4xqka@sirius.home.kraxel.org> In-Reply-To: <20210924053713.fy4ulz3ykbs4xqka@sirius.home.kraxel.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 97033508-9c06-4bc4-c8a0-08d97f2dfaaf x-ms-traffictypediagnostic: BYAPR11MB3832: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZVQkEAhu5kby4UUP7d4I/1nq0gAl31GvwjyDb1RQXwmaxielLCiMPhwEWiQlf5DrXwVMXntniTNYZje1JWuB7qpwx8laZZFCmEnaMUIkl+OBl0xXWs0Fqn8L73ggXfox/nHHk92fWKWMlpjcqDLAwufYK22cQt163sGzQ3G8pRwlSeI6NoG2izGp4Apzwtg4y1YTvixvqfzqqgqUIMcU5YXBl9tzxY7d0EDq6+qt92osqJA2PLRR+FjaBoCNZuHTXsbWLK2O0MV17f89PEEtN5Ze9jk3Ul+DRSJ/anGpAHg0Bi+4p/xXMl4xLli3LknTl1i5jJZyswSdxSGN6L2g/5edXeEoJSLH6Ye3BeaAHFgLGwq0ppn4xe2XLpg/dC6r9riXMqhk5ax0z0D0nQ6LWVcAimOXVBHSa8YHKQmvd/gwINEsRVIAm5StHvhmr+k+hJl+hx5TM0dgihTzFRD7ptKJrZglcfF01xXPYM2RgKB6VR37A+SQw+/gzrlskbXuUXBTnyjCPCVVnfFT2QZi+aocYQGobXoTcm1byUWeZS4zvEnGv/IWztGeS3erY9LRYiqoo4YMPF5ZczkUB29cjIPeUS7LBKNkEn44XVIa21bwlOqDncx+CBjmyzXS82AnhuPCRLlnjzqpdUj3JnLgiW2ZPK0sLfgyh83ic742UwK3MVMLU9dANAFh31h38LDxZOaogw0fVni3zXEg1HzWlw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR11MB4894.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(53546011)(6916009)(4326008)(71200400001)(54906003)(52536014)(6506007)(55016002)(66556008)(26005)(66476007)(76116006)(186003)(66946007)(66446008)(8936002)(316002)(8676002)(2906002)(38070700005)(508600001)(64756008)(86362001)(33656002)(5660300002)(122000001)(83380400001)(7696005)(9686003)(38100700002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?7nLhgNZ67+qAFfDFhyIp7on/1FLMrZYkiR4rBkVWT9vsnrLBByHJgSIPmwf/?= =?us-ascii?Q?XUFKjNbPD8HQF9/9AqrnBAtnJnnpuLlS72GVrWY5+hJCANifFdeIRAPrYLb8?= =?us-ascii?Q?/NdPe1pKW+vPyNDnBNrGsUTkyDC24FqetDHH6MPryfU9oEBZjLtTURC/+/Iv?= =?us-ascii?Q?z9M9Xt7Z1u5Ax3G7sGGlkQlGl0dBB24MpM5pHW6tOuFeHrb5BK3xLxzmCp+c?= =?us-ascii?Q?AhTJVBUPKEWC4pSZDmrc0/ckBk4V823ViWFSoVa31EuNX/XeLNNRLvIhnqZg?= =?us-ascii?Q?cbKONqAqTK7CT3+IeEl/u1vDBzjS0WwgXOEBABocCMI4/gZlraf6SXSO5RBz?= =?us-ascii?Q?qBZfb1bdV5bu0zaHyKod9eDve+4JUUMZfayi0jfJT+hf/JoXvkv84mvUMC/2?= =?us-ascii?Q?zo+FA3KhACPVvAHUH3lcDEWJPC3lZQUYzdLwd1KeLSq7ZM8NmRRPNT8CyhUg?= =?us-ascii?Q?iUS8edc+DOWIBfEkvEWHT7t+kTyzE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MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB4894.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97033508-9c06-4bc4-c8a0-08d97f2dfaaf X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2021 07:36:10.4640 (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: Nxp5sgHMt5lkfue81MPKrmlgh1JTL8b89XL5o3UwHS/Q6v/obIni4kficTPhs/+/c44n0MCn0CK6KkM/DbWtkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3832 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 That is my question. AMD has its own extension. TDX has its own extension. Why we have to unify the firmware binary, and to make both us unconfirmable= ? Or do we want to unify ARM/AARch64/RISC-V ? I agree we can unify as much as possible. But due to hardware difference i don't think we achieve 100% unifying.=20 Thank you Yao Jiewen > -----Original Message----- > From: Gerd Hoffmann > Sent: Friday, September 24, 2021 1:37 PM > To: Yao, Jiewen > Cc: Xu, Min M ; Brijesh Singh = ; > devel@edk2.groups.io; Ard Biesheuvel ; Justen, > Jordan L ; Erdem Aktas = ; > James Bottomley ; Tom Lendacky > > Subject: Re: [edk2-devel] [PATCH V7 1/1] OvmfPkg: Enable TDX in ResetVect= or >=20 > On Thu, Sep 23, 2021 at 02:19:17PM +0000, Yao, Jiewen wrote: > > All fields in TDX metadata are required. So the current SEV proposal > > (3 fields) does not work for TDX. The extra fields are used to guide > > VMM on how to copy the binary, allocate memory, >=20 > --verbose please. >=20 > The VMM loads the firmware just fine today without that metadata because > it's defined by the x86 architecture how to the firmware must be loaded. >=20 > And note that we are discussing an unified normal/sev/tdx firmware > binary here, so the "we might do something completely different for > tdx in the future" argument isn't very convincing here. >=20 > take care, > Gerd