From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 53482740052 for ; Tue, 30 Jan 2024 13:04:50 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=4yzyLQnnrYTExM2aRm3s61CRpoSUcRVJh0b8PXWzsso=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1706619888; v=1; b=iRlxJ8NM4c0fMbjAhjCyHktT1X/6oxFbDnB+J6C9nf1Qxf2y1w8OkIG/FYuCyZy+J2plXyT9 vcbOvO21nNpNdJL04habo92InKJysmvhTueUbfF3Pdo3wLcz/8RmjmDHHceBRSIzAdL/JPTjUsn JWAKjP9wTW8xIQJ3RkKGqpLA= X-Received: by 127.0.0.2 with SMTP id E85PYY7687511xUoRb1ES11O; Tue, 30 Jan 2024 05:04:48 -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.17475.1706619888145758774 for ; Tue, 30 Jan 2024 05:04:48 -0800 X-Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-325-DyUDFpdYMX-mFxW2zN0gMg-1; Tue, 30 Jan 2024 08:04:44 -0500 X-MC-Unique: DyUDFpdYMX-mFxW2zN0gMg-1 X-Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 A3F70386A0AE; Tue, 30 Jan 2024 13:04:43 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.180]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 533C91C060AF; Tue, 30 Jan 2024 13:04:43 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id F1266180038B; Tue, 30 Jan 2024 14:04:41 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Michael Roth , Oliver Steffen , Jiewen Yao , Gerd Hoffmann , Tom Lendacky , Laszlo Ersek , Min Xu , Ard Biesheuvel , Erdem Aktas Subject: [edk2-devel] [PATCH v3 0/4] OvmfPkg/Sec: Setup MTRR early in the boot process. Date: Tue, 30 Jan 2024 14:04:37 +0100 Message-ID: <20240130130441.772484-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 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: w8wnCZLs2WO2BWa601WUKfS3x7686176AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=iRlxJ8NM; 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 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Also add #defines for MTRR cache types to ArchitecturalMsr.h and followup patches to use these #defines. v2: - Use constants for the mtrr enum too. - Don't include linux kernel source code in the commit message, use a link instead. Also reword the description. Gerd Hoffmann (4): OvmfPkg/Sec: Setup MTRR early in the boot process. MdePkg/ArchitecturalMsr.h: add #defines for MTRR cache types UefiCpuPkg/MtrrLib.h: use cache type #defines from ArchitecturalMsr.h OvmfPkg/Sec: use cache type #defines from ArchitecturalMsr.h .../Include/Register/Intel/ArchitecturalMsr.h | 7 ++++ UefiCpuPkg/Include/Library/MtrrLib.h | 26 ++++++++------- OvmfPkg/IntelTdx/Sec/SecMain.c | 32 +++++++++++++++++++ OvmfPkg/Library/PlatformInitLib/MemDetect.c | 10 +++--- OvmfPkg/Sec/SecMain.c | 32 +++++++++++++++++++ 5 files changed, 90 insertions(+), 17 deletions(-) -- 2.43.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114781): https://edk2.groups.io/g/devel/message/114781 Mute This Topic: https://groups.io/mt/104052590/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-