From nobody Mon Sep 21 09:53:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+114380+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+114380+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1706171002; cv=none; d=zohomail.com; s=zohoarc; b=GUxQrO2ei9pH/zWgt2PQj9uywQ8rus02IAH/x5xWlwRsj32BFou8J2aVIStFmmeww0PCTOlnD0CGMqIJc+Ij2z97JW7OqWsZOeIiqI+mZGkTdJPpzOu9u0BlX0l4ADqIbVtpilLZLxPFwtIP5U0EcBFGgQT39qryYETbJYl/NlY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706171002; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=rYwKY53mPFqRT53ZxVzGQM0l/rMyc32Mhioor5a0UK4=; b=l+KRh4HVPlTIdflursgD7HqyQKPnqFMhK59bRZPZPn50ZXzs1Fmix0Hd1fDBDqwFSEm/q9Np1NHjeCDKfWh28kmKHJ7oS8Gq1h40Tyf+5pH0CGh6JkUkWHbZCRkzbfbRGz9tlHsvZKt5FBvvOea69PvfmHGKiAl24yWPTbKdHLM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+114380+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 170617100228055.09393524995528; Thu, 25 Jan 2024 00:23:22 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=mfEcRzcDMS5+Am9FkyBPmrEeRJwWBR0WAjMtqZUWni0=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1706171002; v=1; b=AfiztHzYdhbeoaOzx264JoDybzwq5tuiYBppsKvFAzF03Oy47q4H9Cppd0Ey4NVbL0UWJOpn 8c9pCGbZWu3lvjUEiczbfIovLoQbk2VKMoJ0v0aNI7ADgDZttSmvL9zixybbpTOO1B2oRqO1Vk1 tg71ERzCNsRz8ThBwUSpUceg= X-Received: by 127.0.0.2 with SMTP id 1yzeYY1788612xzaeBh6LhwJ; Thu, 25 Jan 2024 00:23:22 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.12562.1706171001365132664 for ; Thu, 25 Jan 2024 00:23:21 -0800 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-193-j6CPpaGzOxO_Iyabc46-Qg-1; Thu, 25 Jan 2024 03:23:16 -0500 X-MC-Unique: j6CPpaGzOxO_Iyabc46-Qg-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 983C883B870; Thu, 25 Jan 2024 08:23:15 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 32C2C492BC6; Thu, 25 Jan 2024 08:23:15 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id BA1051801B04; Thu, 25 Jan 2024 09:23:11 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Laszlo Ersek , Erdem Aktas , Michael Roth , Min Xu , Gerd Hoffmann , Jiewen Yao , Tom Lendacky , Oliver Steffen Subject: [edk2-devel] [PATCH v2 4/4] OvmfPkg/Sec: use cache type #defines from ArchitecturalMsr.h Date: Thu, 25 Jan 2024 09:23:11 +0100 Message-ID: <20240125082311.310203-5-kraxel@redhat.com> In-Reply-To: <20240125082311.310203-1-kraxel@redhat.com> References: <20240125082311.310203-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 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 Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 0LBouFpIbGuNakZ9z4T7xaxix1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1706171003584100016 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Gerd Hoffmann --- OvmfPkg/IntelTdx/Sec/SecMain.c | 2 +- OvmfPkg/Sec/SecMain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/IntelTdx/Sec/SecMain.c b/OvmfPkg/IntelTdx/Sec/SecMain.c index e8ff0e9081d1..6ad2214293b2 100644 --- a/OvmfPkg/IntelTdx/Sec/SecMain.c +++ b/OvmfPkg/IntelTdx/Sec/SecMain.c @@ -70,7 +70,7 @@ SecMtrrSetup ( } =20 DefType.Uint64 =3D AsmReadMsr64 (MSR_IA32_MTRR_DEF_TYPE);; - DefType.Bits.Type =3D 6; /* write back */ + DefType.Bits.Type =3D MSR_IA32_MTRR_CACHE_WRITE_BACK; DefType.Bits.E =3D 1; /* enable */ AsmWriteMsr64 (MSR_IA32_MTRR_DEF_TYPE, DefType.Uint64); } diff --git a/OvmfPkg/Sec/SecMain.c b/OvmfPkg/Sec/SecMain.c index a066db34997c..92cf510ea68f 100644 --- a/OvmfPkg/Sec/SecMain.c +++ b/OvmfPkg/Sec/SecMain.c @@ -766,7 +766,7 @@ SecMtrrSetup ( } =20 DefType.Uint64 =3D AsmReadMsr64 (MSR_IA32_MTRR_DEF_TYPE);; - DefType.Bits.Type =3D 6; /* write back */ + DefType.Bits.Type =3D MSR_IA32_MTRR_CACHE_WRITE_BACK; DefType.Bits.E =3D 1; /* enable */ AsmWriteMsr64 (MSR_IA32_MTRR_DEF_TYPE, DefType.Uint64); } --=20 2.43.0 -=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 (#114380): https://edk2.groups.io/g/devel/message/114380 Mute This Topic: https://groups.io/mt/103950482/1787277 Mute #defines:https://edk2.groups.io/g/devel/mutehashtag/defines Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-