From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bounce+27952+114866+7686176+12367111@groups.io>
Received: from mail02.groups.io (mail02.groups.io [66.175.222.108])
	by spool.mail.gandi.net (Postfix) with ESMTPS id 73BDBAC0C5E
	for <rebecca@openfw.io>; Wed, 31 Jan 2024 08:14:33 +0000 (UTC)
DKIM-Signature: a=rsa-sha256; bh=hoErqkKKLw4iXFSlnHBKAnKUnvOEyrbtJaflYed9y54=;
 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:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition;
 s=20140610; t=1706688872; v=1;
 b=ovpTwEVUBoxuzLdqATpbYvvIZwb7HixY/jVmI5tKzj9PT2bJetQRnVxWs0OswPPkiL+qLYf3
 Vt8LNk68BCgIKds30/x97MIZqcYRAq2DMGWfA0Af0Ytd53NvF2OECmYWu9UhYkJHU1vyGnjFpON
 MDWPjX5nv35HszmhphL31t1w=
X-Received: by 127.0.0.2 with SMTP id DOD3YY7687511x4lJ4w9H4nj; Wed, 31 Jan 2024 00:14:32 -0800
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.web11.9705.1706688871253298244
 for <devel@edk2.groups.io>;
 Wed, 31 Jan 2024 00:14:31 -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-370-WJrJyfnwMqe5DuC8iaBdAA-1; Wed,
 31 Jan 2024 03:14:23 -0500
X-MC-Unique: WJrJyfnwMqe5DuC8iaBdAA-1
X-Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1])
	(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 A7CAF2815E2A;
	Wed, 31 Jan 2024 08:14:22 +0000 (UTC)
X-Received: from sirius.home.kraxel.org (unknown [10.39.192.243])
	by smtp.corp.redhat.com (Postfix) with ESMTPS id 357ED3C2E;
	Wed, 31 Jan 2024 08:14:22 +0000 (UTC)
X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000)
	id F203F1800DC4; Wed, 31 Jan 2024 09:14:20 +0100 (CET)
Date: Wed, 31 Jan 2024 09:14:20 +0100
From: "Gerd Hoffmann" <kraxel@redhat.com>
To: Laszlo Ersek <lersek@redhat.com>
Cc: Pedro Falcato <pedro.falcato@gmail.com>, devel@edk2.groups.io, 
	Erdem Aktas <erdemaktas@google.com>, Oliver Steffen <osteffen@redhat.com>, 
	Jiewen Yao <jiewen.yao@intel.com>, Ard Biesheuvel <ardb+tianocore@kernel.org>, 
	Min Xu <min.m.xu@intel.com>, Tom Lendacky <thomas.lendacky@amd.com>, 
	Michael Roth <michael.roth@amd.com>, Liming Gao <gaoliming@byosoft.com.cn>
Subject: Re: [edk2-devel] [PATCH v2 3/5] OvmfPkg/ResetVector: improve page table flag names
Message-ID: <cas2xkvjvkj2b6miec4hbio3ojz4ptwirmftmjiam7tmnzz5tt@hcu2a3tihgr4>
References: <20240130123204.764453-1-kraxel@redhat.com>
 <20240130123204.764453-4-kraxel@redhat.com>
 <CAKbZUD0DXEdmkn_9LDWE5jQchUiVZQmH6PFdDmcMcVN-8gOHFw@mail.gmail.com>
 <69c99682-80b5-274d-4f8e-c8c8f4ed5e7a@redhat.com>
MIME-Version: 1.0
In-Reply-To: <69c99682-80b5-274d-4f8e-c8c8f4ed5e7a@redhat.com>
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Precedence: Bulk
List-Subscribe: <mailto:devel+subscribe@edk2.groups.io>
List-Help: <mailto:devel+help@edk2.groups.io>
Sender: devel@edk2.groups.io
List-Id: <devel.edk2.groups.io>
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: <https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/plugh>
X-Gm-Message-State: 8OPRHHKKPawj7oAIUJjFSp7dx7686176AA=
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=20140610 header.b=ovpTwEVU;
	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

  Hi,

> > Technically, if we want to be pedantic, these are PDPTEs (or PDPs I
> > guess), so PDE is misleading here.
> 
> I remembered the fact that the SDM used different terms for different
> table levels, but honestly, I've never been able to keep all those in my
> mind for longer than 5 minutes. I recall them as fairly arbitrary.

The names made sense back in the 90-ies when we had only two or three
(with PAE) paging levels on x86.  Nowdays with up to 5 levels not so
much.  I likewise can't remember all the names, so I very much prefer
to work with level numbers.

The bits for the lowest level are slightly different from all levels
above, and I've used the level 1 + level 2 names (page table entry and
page directory entry) to name them.

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114866): https://edk2.groups.io/g/devel/message/114866
Mute This Topic: https://groups.io/mt/104052210/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-