From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.groups.io (mail04.groups.io [45.79.224.9]) by spool.mail.gandi.net (Postfix) with ESMTPS id 1C7A278003C for ; Wed, 17 Apr 2024 07:45:27 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=uD2H63t4CgPYC2RY+wjSiN4IOAXFv/iS28yCjJAxjcc=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1713339926; v=1; b=BFqzZNtybH1byOPdakojp9i87Km4+dMLYbKznRU3eviKwN/T6E6Ip+r++o8BlIdER3kqKQUT SMjX41Tbe8scX0Kp8NTdZVqxiN93OILmhA6nlSQxq9iI5MKOkocWF7fkg0a7WnSyLXdfnSi5BKz EIn4pcaZ/HuYmrBJQEAJm3e50yhPipqTZdVmGcbVbRBsl56uUoXkYINif0IQmuIbxrHPr5UevPv uzRZ/R90SYgPmFUHQzhtaues/KUFIP5Bqkh1oBm2UzWXrtZcNj90+7Ibhjamy/QkEHh6bETvOTG Lc7Ci01G815+65o6UPjumP58tKEVrU0U8Q69kmKJefJBA== X-Received: by 127.0.0.2 with SMTP id YYnUYY7687511xm5OMnS3Qtf; Wed, 17 Apr 2024 00:45:26 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mx.groups.io with SMTP id smtpd.web11.7346.1713339925845430926 for ; Wed, 17 Apr 2024 00:45:25 -0700 X-CSE-ConnectionGUID: He9TpVowQ3KswmvD8XiGgw== X-CSE-MsgGUID: wdy/372cRRKQ+qPgmOYBNQ== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="11759533" X-IronPort-AV: E=Sophos;i="6.07,208,1708416000"; d="scan'208";a="11759533" X-Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2024 00:45:25 -0700 X-CSE-ConnectionGUID: PvPbGx7kTDCB/jk3ebt94w== X-CSE-MsgGUID: nKDyffgIS02USukbJz2Azw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,208,1708416000"; d="scan'208";a="22615856" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmviesa007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 17 Apr 2024 00:45:25 -0700 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 17 Apr 2024 00:45:24 -0700 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.2507.35; Wed, 17 Apr 2024 00:45:23 -0700 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 17 Apr 2024 00:45:23 -0700 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 17 Apr 2024 00:45:23 -0700 X-Received: from MN0PR11MB6158.namprd11.prod.outlook.com (2603:10b6:208:3ca::18) by SJ0PR11MB5937.namprd11.prod.outlook.com (2603:10b6:a03:42c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Wed, 17 Apr 2024 07:45:16 +0000 X-Received: from MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::b0c8:dcaf:59ea:9e99]) by MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::b0c8:dcaf:59ea:9e99%6]) with mapi id 15.20.7472.037; Wed, 17 Apr 2024 07:45:16 +0000 From: "Wu, Jiaxin" To: Gerd Hoffmann CC: "thomas.lendacky@amd.com" , "devel@edk2.groups.io" , "Ni, Ray" , "Zeng, Star" , Ard Biesheuvel , "Yao, Jiewen" , "Kumar, Rahul R" Subject: Re: [edk2-devel] [PATCH v1 03/13] UefiCpuPkg/SmmRelocationLib: Add library instance for OVMF Thread-Topic: [PATCH v1 03/13] UefiCpuPkg/SmmRelocationLib: Add library instance for OVMF Thread-Index: AQHai99oFIlHXkFAQ0+HiVjxVR3nL7FpUJEwgAE4/gCAACrqMIAABeoAgAAPJpCAAUmvAIAACwWw Date: Wed, 17 Apr 2024 07:45:16 +0000 Message-ID: References: <20240410135724.15344-1-jiaxin.wu@intel.com> <20240410135724.15344-4-jiaxin.wu@intel.com> <2kd4qwvgbbn4mhlagidemtwfr3uzdgokrf5t3ttsileexkgenf@lmcby5lxm7xs> In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN0PR11MB6158:EE_|SJ0PR11MB5937:EE_ x-ms-office365-filtering-correlation-id: e48b0589-6619-44be-7de7-08dc5eb252b6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: n21i1BAtoqWlWxFdC82CiDqpyurhxE4nInPO0lSRXlq9lIJGOJjVqK0GJZnMkgu1aRv4GAn8gQgziVRh2lOVrDQp66qmhnkGZCaxB0lcA7ryeAcb2kPTuRRbEybEUz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BdsKV/RRo?= =?us-ascii?Q?GsMMQc2ECXzbquhOrqfqWkDfj2iR4Dt/1AURIwdp0snmUUwOA6W3o+vjgxgi?= =?us-ascii?Q?T7vU4AHccZU5uDfOu8XkoZrDFsbUr/WhIruadCJCCgLisV+O9uo5OaSbhal/?= =?us-ascii?Q?Bh1ZnPzePtTlVib7nipfbwbx7DuamEyfymrYJB2VUtEjUFbK3JpwaYbwIOYG?= =?us-ascii?Q?1jhMJrp8Sw8BN8VE+RD5NNi+AIj7MOR+mjujfwR7q29mMS0FC763BPm68pgA?= =?us-ascii?Q?iaTAYaL1/PnG359llE/YeunGMCNxjWJHqOOe+o5tc7vF0ONem5KvnYlneMwk?= =?us-ascii?Q?D/4+NqgiytdTXonvIr9xZ2K+upWzJ7bGlN/4MAN9Qx37r2fLaKgpMKwrxSi8?= =?us-ascii?Q?34BIZxykJi5oOME4p1AWsBGP7gQ4m9twUhwVXDxb?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6158.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e48b0589-6619-44be-7de7-08dc5eb252b6 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2024 07:45:16.4247 (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: RoJk1x09jMXgTTMsRaqFDmVB9ypox1aiUplQ0DJiXBV763xsEGjtMhzKC8JGzEVLlbXvN2prJMhsoPC+hm7ZOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5937 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Wed, 17 Apr 2024 00:45:26 -0700 Resent-From: jiaxin.wu@intel.com Reply-To: devel@edk2.groups.io,jiaxin.wu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 9E0aRCQ40IDgMQaj9Veh6tFex7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=BFqzZNty; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.9 as permitted sender) smtp.mailfrom=bounce@groups.io I'm using the OVMF library, haven't try the AMD library:). > -----Original Message----- > From: Gerd Hoffmann > Sent: Wednesday, April 17, 2024 3:04 PM > To: Wu, Jiaxin > Cc: thomas.lendacky@amd.com; devel@edk2.groups.io; Ni, Ray > ; Zeng, Star ; Ard Biesheuvel > ; Yao, Jiewen ; Kumar, > Rahul R > Subject: Re: [PATCH v1 03/13] UefiCpuPkg/SmmRelocationLib: Add library > instance for OVMF >=20 > On Tue, Apr 16, 2024 at 11:34:00AM +0000, Wu, Jiaxin wrote: > > Hi Gerd, > > > > > Is the SmmRelocationLib approach supposed to work with mixed mode > > > firmware where PEI is running in ia32 mode and dxe/smm is running > > > in x64 mode (i.e. OvmfPkg/OvmfPkgIa32X64.dsc)? > > > > Yes, I passed the test on the both OvmfPkgIa32X64 & OvmfPkgX64 for SMM > support. >=20 > The OVMF library I assume? > Did you try the AMD library too? >=20 > > It does has the problem on OvmfPkgIa32 for smm support (same as > > master). I did quick check, it's not only the CpuSaveState->x86 or > > CpuSaveState->x64 structure issue, but also has some problem to > > handler the smi hook return. We can handle this problem in another > > topic. >=20 > Yes, fixing ia32 can be done separately. >=20 > take care, > Gerd -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117902): https://edk2.groups.io/g/devel/message/117902 Mute This Topic: https://groups.io/mt/105441992/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-