From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 9E1DB74004A for ; Wed, 24 Apr 2024 11:29:22 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0e/AtlQxCz1shzXgt4udEK3EbvnEql6wcJJmaxn5O2Q=; c=relaxed/simple; d=groups.io; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition; s=20240206; t=1713958161; v=1; b=SEnWC4iGS7Cn3eIfuU8Ak/0LDfwaeu4RSgXZSn/Mb3taxP41HjRALquVqavAAm4r369+mT2/ hw8ACixHrlycx8tHJEtu4peSyQnzShhEk1ULMdY2+GjmDj9QY5cWnUh9F9ITpo2t9iYc0wahyBC 3aLnsNV0oIloituegxBiKe/d2rCSi99BN6Q69egE+3nBHvBZHyVRli/dXfKbIRf/yM/OsElnmBu c1kmsOBwxQ2ZvhklmmSv/J8Je1cW4qjhcAynhSqm1R7q9JjUk5DUXa6oIHt0AofBDF5+w0Tpns4 uhjJX3gVYshZ97zngkI8hzVlkaFczqMO+Yr7fWyiueffQ== X-Received: by 127.0.0.2 with SMTP id deDhYY7687511xBMJtodVW71; Wed, 24 Apr 2024 04:29:21 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.14136.1713958160309244924 for ; Wed, 24 Apr 2024 04:29:20 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-388-fVa5Zj0kPXGa5w6Qlq2tDg-1; Wed, 24 Apr 2024 07:29:13 -0400 X-MC-Unique: fVa5Zj0kPXGa5w6Qlq2tDg-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 45F831011351; Wed, 24 Apr 2024 11:29:13 +0000 (UTC) X-Received: from dobby.home.kraxel.org (unknown [10.39.192.254]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C9B04C13FA4; Wed, 24 Apr 2024 11:29:12 +0000 (UTC) X-Received: by dobby.home.kraxel.org (Postfix, from userid 1000) id 7C3DAF62A0; Wed, 24 Apr 2024 13:29:11 +0200 (CEST) Date: Wed, 24 Apr 2024 13:29:11 +0200 From: "Gerd Hoffmann" To: "Wu, Jiaxin" Cc: "devel@edk2.groups.io" , "Ni, Ray" , "Zeng, Star" , "Kumar, Rahul R" , "Dong, Guo" , "Rhodes, Sean" , "Lu, James" , "Guo, Gua" , Ard Biesheuvel , "Yao, Jiewen" , Abdul Lateef Attar , Abner Chang , Tom Lendacky Subject: Re: [edk2-devel] [PATCH v3 00/13] Add SmmRelocationLib Message-ID: <4p5no7tieltk7n2p4mzkuy2ypd2kkxdwxs6lsfnwlrlucosmba@zs5cfcjhfz5y> References: <17C74D78B0B952AD.15491@groups.io> <3v4gqem2libtqyxyw6gzuqrifjxurj7lahdbrfn4474fvgkit2@kojgaroebe3o> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.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, 24 Apr 2024 04:29:20 -0700 Resent-From: kraxel@redhat.com Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: YdD6cT9vtkUQKibj0ZOviIkcx7686176AA= Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=SEnWC4iG; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io On Wed, Apr 24, 2024 at 03:56:56AM +0000, Wu, Jiaxin wrote: > Hi Gerd, > > AMD version is not work for IA32X64 ovmf. > > I checked the detailed: CpuSaveState->x64 is always used for OVMF no matter IA32 or X64, while AMD is not, which is decided by the MSR EFER_ADDRESS LMA bit check. Hmm, probably because only PEI runs in 32-bit mode whereas DXE and SMM run in 64-bit mode, so 32-bit PEI has to prepare things for the 64-bit SMM. > There is a potential issue/open in OVMF why need use the X64 > CpuSaveState for IA32. Before this open resolved, I still prefer to > keep use the ovmf specific lib instance. Yes, lets stick to the ovmf version for now, and maybe remove it later when fixing the ia32 ovmf builds. take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118204): https://edk2.groups.io/g/devel/message/118204 Mute This Topic: https://groups.io/mt/105593568/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-