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.web11.69685.1629383242171854213 for ; Thu, 19 Aug 2021 07:27:22 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=CtL9kr9o; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: min.m.xu@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10080"; a="216561023" X-IronPort-AV: E=Sophos;i="5.84,334,1620716400"; d="scan'208";a="216561023" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2021 07:27:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,334,1620716400"; d="scan'208";a="451404946" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga007.fm.intel.com with ESMTP; 19 Aug 2021 07:27:20 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 19 Aug 2021 07:27:20 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 19 Aug 2021 07:27:20 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Thu, 19 Aug 2021 07:27:20 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.174) 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.2242.10; Thu, 19 Aug 2021 07:27:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oHO7noV+CF/thhDJ+Jnso98jHPSCWkZaQ7pxV5BNMP3Z0VJ0cAlNpl9U2IdkTcelq9ZCFeQFb58fR723k57ayE+xrP5zJfecYZgc477noTrbSVOwgR5pBDY8uqBDA8oQQnFIyAY4ya35qNDrgDSbUCnjzcd5vXUg+vD5s4ZFoimOVvkHPqLvyVf0ZmS5wF6+kEOZ50fTYzhVa5iX1jHptcPNHJOODSagMXionoQKG4s5It0GVBnvXvIjMijOebd9deKnztEV8mjvbj1Sh9oipcPw2A0wrDqpYBDLUCuA7TvgSaje6W4S94LbEi9v/fQvNlr4JJ7xkNCfS1hFSu/MnQ== 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-SenderADCheck; bh=+2VFVqUl3e2kUO9tAjwv9Vk2D5R5pxUXXHQl4vYCbtU=; b=Tgiq/kT88i6d7z2+IB33pbxpgzsA9lSctw/389S2JZugEetOAzw2o9oi4WWDdqwV0Vyta692Knd2gXZTFcCyq7z2Okg/agyCYzbtqNvxr8ARKxxsb2P1vqdC4F/Qph/At2v2svRgpFq5+p1pK02NJ8rUSUTS+S80xgSas2XsN/0W00jkeVsg1blKmeRehZVzz8KAZcAzUCRsKY/0QW/eIaCi/StKnjujVsS5n4ByQfOsyua+ehSHK6Hu3FlrW6qAT6h+6EvN/Pl+dJdDIPAqXpN+N4SRY+bLinbfHQYg4/UdudIg18A8ybB/g2n/V98Z9rfkDZCmKNvsNsoV1U5Fsg== 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=+2VFVqUl3e2kUO9tAjwv9Vk2D5R5pxUXXHQl4vYCbtU=; b=CtL9kr9osqUUltdO71tZfYLyR3mCLsLOZMpr6yMRiRzKgFltmXGvzeE/9zYn6PULzwuaPBvnwyYmo7GC7AkLz2Y8aSbqQXbT3cs0huM694qFOD1SqFtiW4j6mc8XUK0Ld45/Oeln1duoysG70q6Mh70Zp9mkmHOCe1HCXSdtGBk= Received: from PH0PR11MB5064.namprd11.prod.outlook.com (2603:10b6:510:3b::15) by PH0PR11MB4918.namprd11.prod.outlook.com (2603:10b6:510:31::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Thu, 19 Aug 2021 14:27:16 +0000 Received: from PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::c93:200e:5aeb:e11b]) by PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::c93:200e:5aeb:e11b%3]) with mapi id 15.20.4415.024; Thu, 19 Aug 2021 14:27:16 +0000 From: "Min Xu" To: Gerd Hoffmann , "devel@edk2.groups.io" CC: Ard Biesheuvel , "Justen, Jordan L" , Brijesh Singh , "Erdem Aktas" , James Bottomley , "Yao, Jiewen" , Tom Lendacky Subject: Re: [edk2-devel] [PATCH 18/23] OvmfPkg: Enable Tdx in SecMain.c Thread-Topic: [edk2-devel] [PATCH 18/23] OvmfPkg: Enable Tdx in SecMain.c Thread-Index: AQHXj3Fii54wK/y3kE6wC54pvhWksqt6bd2AgAB8vJA= Date: Thu, 19 Aug 2021 14:27:16 +0000 Message-ID: References: <95f116893a4a17c7e0966e240a650f871c9f9392.1628767741.git.min.m.xu@intel.com> <20210819064937.o646vxjebwzgfgoz@sirius.home.kraxel.org> In-Reply-To: <20210819064937.o646vxjebwzgfgoz@sirius.home.kraxel.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 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: ee9cccc3-1884-4db1-1cec-08d9631d7223 x-ms-traffictypediagnostic: PH0PR11MB4918: 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:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Kuu0pRoZaETdxMyIHK9/tqLyD9k1kvv6a0/a0X7Oak/YbL4u7egTOdd8HOjer3BA2McgxeHiETFFS1vogMqUeP+QQeENtIWHUOitBXS04+D7mB9BT3FhhYj2mTcvlzwiRUOeevoY4ltSBwa9cs+KmTxNSoigN0JbPKu9uxB1Yi26HSzJfWg7Fa6edMBKXBt3obYqIOys+xTLxwOxMcLAJzFg5nnt8j/DLJMG5GGC22LJqgJig4p2NeXC1KGOgCCRSsVH6wztJ+ODybMYSs8p6alR7tpRhscnB4FShJ8sw93/y6rvtErjGJMtFhphm4IP5dUvKhx1f5qfFsgjGQto0sOae9UmU8eyTlqYEA95any34mp/FM/+Fephn7aifWBZY6lFu4UaEcpVQwKMIhenZG7ixT3UJApt3Qj9H62qGNSjwdL69nl3XPVe9qcEAT6IFhp2ykLGxdhuuyJlOQNMtuJUUUKJutxF8UY1JZuAQlbMxbIzBRKFaiy20vtV3VzJIQ9112etBK2WHpG1rF1SuuzrwCn5FKCCP6s3KkmvuFvGGovn56bgSU2irX5GPXkqL7dCiCjreNsKgA/Z3p3tbfDHKM/UrabB20/ueT5phiytjZiiU82cBONB+ghvPbUmlSYdrigI8LmCZCNJC6dnz3IoxmvwCpoPSzC8ZmgpTJFkfJSF+cj3ivLE2d/BXbR9JzLASrNVr2chndzXZ+b+SxSeg4raQER11EXETZVnt2+/CNOSJXMQboH3CNEbiGtKhrApLZukDkDbSRAVLXl9OqJy3lGz3tSgvNB1zil2sl8Bbo9oSRzM/DGuzWPrDpc2BH9wwioXJ9JUlzfWHLBZew== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5064.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(346002)(366004)(376002)(39860400002)(136003)(9686003)(122000001)(38100700002)(478600001)(55016002)(66556008)(54906003)(4326008)(86362001)(26005)(110136005)(66446008)(8676002)(52536014)(38070700005)(6506007)(966005)(71200400001)(66946007)(5660300002)(66476007)(7696005)(76116006)(316002)(8936002)(33656002)(186003)(2906002)(64756008)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ZmVOAdc8ep8E9IJx879bExqa/nsVAadFL+ZPK4TsvB0KssA8Jd+CvX0oLc9n?= =?us-ascii?Q?XU6E+KnYM4VCoBH0wzxqKOvDqgfT+cFWk8KX+23oEyF+ff1LUkJElQNF+0iS?= =?us-ascii?Q?ojKZFs/c8m1aTyKBOIL9QdhqEYI7AEk8sH/uh6eXgLFRcYnhl9JR3qXveE+S?= =?us-ascii?Q?WKFGIKq58RH4U1PblQDfm2Whl5XRB84NZjjcHmu4ydsuOFITAJrKYFsadr0Q?= =?us-ascii?Q?KoxwlgfeefdjX5ejes/kQAEndH8KlfxkmKkHd3SI81C6tQ5Q2XEzlbNNndR9?= =?us-ascii?Q?/8DhHF1UheIXKaG9pQ5T+6t3HWJG+8XvjMgiMqFVpfIUcphgkJUtGmfqz0U8?= =?us-ascii?Q?drglXJt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qlmOK3azKUh8?= =?us-ascii?Q?CIMi0DSgPs01k0aCmxXJmMr4nQxkRHJqzF340jNCIwjyKsG81bYGubA23lUV?= =?us-ascii?Q?CE5nLwo1zAYBNi+WMk+Wo2kH?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5064.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee9cccc3-1884-4db1-1cec-08d9631d7223 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2021 14:27:16.8765 (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: 4EiMco85bIOswtsYgACymU0BZJDGDYwiVYt7cGv27LElsCd/uxsLaVEiMoQOWs/cZ+htS8BwMoiXN/JsdZ/2Pg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4918 Return-Path: min.m.xu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On August 19, 2021 2:50 PM, Gerd Hoffmann wrote: > > +/** > > + In Tdx guest, some information need to be passed from host VMM to > guest > > + firmware. For example, the memory resource, etc. These information a= re > > + prepared by host VMM and put in HobList which is described in > TdxMetadata. >=20 > What kind of information is passed to the guest here? Please see https://software.intel.com/content/dam/develop/external/us/en/do= cuments/tdx-virtual-firmware-design-guide-rev-1.pdf Section 4.2 TD Hand-Off Block (HOB) >=20 > qemu has fw_cfg to pass information from the VMM to the guest firmware. > What are the reasons to not use fw_cfg? Not all the VMM support fw_cfg. Cloud-Hypervisor is the example.=20 https://github.com/cloud-hypervisor/cloud-hypervisor TD Hob list gives Cloud-Hypervisor a chance to pass information to guest fi= rmware.=20 For example, ACPI can be downloaded from QEMU via fw_cfg to firmware. But Cloud-Hypervisor cannot pass ACPI via fw_cfg. In this situation, TD Hob can= resolve this problem. >=20 > thanks, > Gerd