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.90497.1670975761564836112 for ; Tue, 13 Dec 2022 15:56:01 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=V0om3uLj; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: min.m.xu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670975761; x=1702511761; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=/e+AKDOo04qafeoQiWZmLzUC7hncnJshB2YCG3M7apg=; b=V0om3uLjk/vUyBGjY+67oMCvG1keZxE8uZ6dFJ+SC0Frxg/TqMXBQRUw n75QEcyUK7YXAVnB3OdgxaIuiyt1b9heVAThyTJpyzuiTD2rJHdKIBaNC x8jTH3Avw3fwq8VvLtIeL0E975croZxe8WgnEBNRWECH9KkyOhUvBaQpk KgjIXG6cSvCel7Y3HBjUte1Igfx0tnFHJ/OEaInKy+SiL3zfTWAx0z9eV SWRqWCj443P5kzBFvgvza5+Gxb8cmKSIZKZOCUblheogyIAzF1KkEe911 Rd5xC6OI9ENtO++O2vG/QiH8kwLomRo+usBIFdxgYkSNxBNhjWrjNBZmu g==; X-IronPort-AV: E=McAfee;i="6500,9779,10560"; a="319410657" X-IronPort-AV: E=Sophos;i="5.96,242,1665471600"; d="scan'208";a="319410657" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2022 15:56:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10560"; a="977612919" X-IronPort-AV: E=Sophos;i="5.96,242,1665471600"; d="scan'208";a="977612919" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga005.fm.intel.com with ESMTP; 13 Dec 2022 15:55:57 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 13 Dec 2022 15:55:53 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Tue, 13 Dec 2022 15:55:53 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.175) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Tue, 13 Dec 2022 15:55:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cgODjA+pm1INTn6jz5RpuNYQda+cBiMy85Pp1CZoFZ5elR8nwaPOjaJnpGHt00dAGubjEkDsX+BRlhUjwfmhCZE2RQ7EvmWsFJlXJj3NvBDc+P3+9dkHH3tO+h3QQANfcrrxqDRULTAtjxfqVq5aO9wZuN733vyYrf+OoqquUWx0uqiV4gMZEc9BWABUlLwSIW2cAftV80/riXSMnnrOTLweZoiDQOWx9/OgK2pLIiRLmNyLXMPuN0Vg2XPlNCBjbK8WagOpY/vo3gAoZBq5IdkvkHcsPFQ6CLf/ASDjSsvRYloVb42NkDym7zDqlzziBwymBqPlST/sbRG0DnhRXQ== 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=/e+AKDOo04qafeoQiWZmLzUC7hncnJshB2YCG3M7apg=; b=eECs3qUCkAd/KqFE60uolpXiuSJbxVb0xs+xATTjwHPinoklG+VZZB4BHseaEEqvymimqHNbFnCohBtyUZgh2a3muEv0jsTQLID/5a9uXtLaESNA3fBq7oZDPcViLP4o78kg4y0yrqe4ik06BwiZZ+z0Fbu/C2bjlXlu1An8nmyxl0OeAfnCVXun8a/+boMzG2FToeQbi4NNPvTbQ4Tp/D5o30TLFkgHmbwhjZfdVnOZGmeLqiKI6BqDWTy1r4VCD3V4GAxoaLGX20PSXhOqYW+l3KLUvfBbWrCvJlJ+buYSJjTSodNyV6MQGFR58qIYt/XhgRW8D3qS6TmfQv3UJA== 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 SJ0PR11MB5069.namprd11.prod.outlook.com (2603:10b6:a03:2ad::6) by SA0PR11MB4687.namprd11.prod.outlook.com (2603:10b6:806:96::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Tue, 13 Dec 2022 23:55:51 +0000 Received: from SJ0PR11MB5069.namprd11.prod.outlook.com ([fe80::10be:d81f:bb30:52d0]) by SJ0PR11MB5069.namprd11.prod.outlook.com ([fe80::10be:d81f:bb30:52d0%5]) with mapi id 15.20.5880.014; Tue, 13 Dec 2022 23:55:51 +0000 From: "Min Xu" To: "devel@edk2.groups.io" , "thomas.lendacky@amd.com" CC: "Aktas, Erdem" , James Bottomley , "Yao, Jiewen" , Gerd Hoffmann Subject: Re: [edk2-devel] [PATCH V2 3/4] OvmfPkg/IoMmuDxe: Add SEV support for reserved shared memory Thread-Topic: [edk2-devel] [PATCH V2 3/4] OvmfPkg/IoMmuDxe: Add SEV support for reserved shared memory Thread-Index: AQHZDraoMq2LXwY0zUi818tfKEBTXK5r+/yAgACDD+A= Date: Tue, 13 Dec 2022 23:55:50 +0000 Message-ID: References: <20221213054824.53-1-min.m.xu@intel.com> <20221213054824.53-4-min.m.xu@intel.com> <44b6e3ca-69e4-bc23-6a46-6138456c7ae1@amd.com> In-Reply-To: <44b6e3ca-69e4-bc23-6a46-6138456c7ae1@amd.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR11MB5069:EE_|SA0PR11MB4687:EE_ x-ms-office365-filtering-correlation-id: 040f4dd4-3a6e-4d21-1db2-08dadd659062 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4hLwXjOAdOQ9LuHCGtwnB4sYeEBrLWmZN9yPQIgC5LeXmApmTamtPLIJavMGtO74WocZqZX1exrlFCUxeOJMlLW/d5hA1o40qpfiMLdzAHxTum63TDwNwK8JMEvJdkYz7cGwNvt7pJKqqEKnMGlYgH/HPCgHtjiwNCWt6AvCR8pfMW2N7KsbNMQ3m5G4fUx0PR3OJVDnetSPFSHgPp0Unqb1rtS4HIr+XT1yTTsuGmgaOI45n7fTaNUlutyHr6bDCvnKNyN6kXcIkCKrs33Xhgxv1MaStHc9FbN+JUQ0mGlF7zzk/cKOPFcqNfOuVKG2Gt/mWUoYi2pOHcYr+3qwNnzeQkSlqgnHkNXT0fUrdvePx6t/WW7BiBC9/XEidlf4nNkbNp/TpIbkVV1CoYdw/DHLGaHGWzIKQGSk9+U3hVvFWKuKW69bpK+z/rMgsB05cfYexdbYSfJ8lXZyVQ6iQHxYa6KP0UwHreV8a/azmScfP1sMiqY+gevwm7XYrqtAhAzPfFdBMFheSiBGh4Wnbg2qDSwgC1sdQQdUVQ5gmBak1bHGrD9kMYFaaUoDzggKBkYZMSUgECeaFp3t8b+q9xqQjdTfDY2l2byOKnnq5iPcWGYHysjMmN1Dk9cf8nDlTyGxXXCREO5Dh7Eh6swYeXx8BXuaRTfdhiUGMt+IWa4sY2iloHfZHsPerraHe0ih9Bs6gbCNhoDWDI5ApDIJqg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR11MB5069.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(6029001)(396003)(39860400002)(136003)(366004)(376002)(346002)(451199015)(52536014)(7696005)(316002)(76116006)(54906003)(110136005)(66446008)(8936002)(66556008)(64756008)(66476007)(38070700005)(5660300002)(4326008)(8676002)(26005)(9686003)(86362001)(66946007)(6506007)(53546011)(83380400001)(186003)(33656002)(478600001)(71200400001)(41300700001)(2906002)(82960400001)(55016003)(122000001)(38100700002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?YTU4akFFSXFCdUxWWFQrTDBHeks1a3BHSFV1d0o2WmNhaEJRUk05amJ4R3hV?= =?utf-8?B?RFV5T2FVQWJFTmNPQTBhbE1JRFJJL1BZVXlVa3dWYXgrYzg3SXRnZzhsSTdO?= =?utf-8?B?ckMzSHZyK21DcXRYNHhsWldSZHV3cU1nMEhhbjFKZGlVaUh1c01uUXJMb1Mr?= =?utf-8?B?NVNmaG1uK3pHNldLaldGblFTWkZWbW5pb0FCL05FY0t2ZVJPWFBSTUEvQVov?= =?utf-8?B?ZER0WHZOMkhqSy84bnZmVEF4WEhwR0hNZHEyV25sZ01vMFE0d1NHcVlsWC8w?= =?utf-8?B?OXhGTmVJdk1qcXNUWHlDL2NNNnhOb2UzUVFtS0NTTEpza2QwZXg5R3JNNjhq?= =?utf-8?B?dUI3eXVUZmRzQTJrS0ZFNzN0S3MxVGd1ZjdneEVLMGZjc3VJZVlOYitRdUVh?= =?utf-8?B?NE5aTzdDZFMwQzJHb28wZ3h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MS-Exchange-CrossTenant-Network-Message-Id: 040f4dd4-3a6e-4d21-1db2-08dadd659062 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2022 23:55:50.9974 (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: QJBPFAAdyg6NZ7yZW5txiAw0YRZY5e6MYUtUOZ4oINTF3pPu4443dhVmUs6ZBnQuu5Fxl17wMpj1A0SiTJukMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4687 Return-Path: min.m.xu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 T24gRGVjZW1iZXIgMTQsIDIwMjIgMTI6MDUgQU0sIExlbmRhY2t5LCBUaG9tYXMgd3JvdGU6DQo+ IE9uIDEyLzEyLzIyIDIzOjQ4LCBNaW4gWHUgd3JvdGU6DQo+ID4gRnJvbTogVG9tIExlbmRhY2t5 IDx0aG9tYXMubGVuZGFja3lAYW1kLmNvbT4NCj4gPg0KPiA+IEFkZCBzdXBwb3J0IHRvIHVzZSB0 aGUgcmVzZXJ2ZWQgc2hhcmVkIG1lbW9yeSB3aXRoaW4gdGhlIElvTW11IGxpYnJhcnkuDQo+ID4g VGhpcyBpbXByb3ZlcyBib290IHRpbWVzIGZvciBhbGwgU0VWIGd1ZXN0cywgd2l0aCBTRVYtU05Q IGJlbmVmaXRpbmcNCj4gPiB0aGUgbW9zdCBhcyBpdCBhdm9pZHMgdGhlIHBhZ2Ugc3RhdGUgY2hh bmdlIGNhbGwgdG8gdGhlIGh5cGVydmlzb3IuDQo+IA0KPiBUaGFua3MgZm9yIGluY2x1ZGluZyB0 aGUgcGF0Y2gsIE1pbi4NCj4gDQo+IE9uZSBkaWZmZXJlbmNlIGJldHdlZW4gbXkgb3JpZ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