x86 architecture
paging




 
page size and used paging structures (2-level and 3-level)
 
CR0.PG CR4.PAE CR4.PSE CR4.VA57 PS in
PDE
page size CR3
points
to
physical
address
size
PDPT PD PT
 
0
 
x x x x --- --- 32-bit --- --- ---
1 0 0 x x 4KB PD 32-bit --- 1024
PDEs
(32-bit)
1024
PTEs
(32-bit)
1 0 1 x 0 4KB PD 32-bit --- 1024
PDEs
(32-bit)
1024
PTEs
(32-bit)
1 1 x 1 4MB 32-bit
(36-bit using PSE36)
(up to 41-bit possible)
--- 1024
PDEs
(32-bit)
1024
PTEs
(32-bit)
1 1 x x 0 4KB PDPT 36-bit
(up to 52-bit possible)
4
PDPTEs
(64-bit)
512
PDEs
(64-bit)
512
PTEs
(64-bit)
1 x x 1 2MB 36-bit
(up to 52-bit possible)
4
PDPTEs
(64-bit)
512
PDEs
(64-bit)
512
PTEs
(64-bit)

 
page size and used paging structures (4-level and 5-level)
 
CR0.PG CR4.PAE CR4.PSE CR4.VA57 PS in
PMLxE
page size CR3
points
to
PML5 PML4 PML3 PML2 PML1
1 1 x 0 3=1 1GB PML4 --- 512
PML4Es
(64-bit)
512
PML3Es
(64-bit)
512
PML2Es
(64-bit)
512
PML1Es
(64-bit)
1 1 x 2=1 2MB --- 512
PML4Es
(64-bit)
512
PML3Es
(64-bit)
512
PML2Es
(64-bit)
512
PML1Es
(64-bit)
1 1 x 2=0 4KB --- 512
PML4Es
(64-bit)
512
PML3Es
(64-bit)
512
PML2Es
(64-bit)
512
PML1Es
(64-bit)
1 1 x 1 5=1 256TB PML5 512
PML5Es
(64-bit)
512
PML4Es
(64-bit)
512
PML3Es
(64-bit)
512
PML2Es
(64-bit)
512
PML1Es
(64-bit)
1 1 x 4=1 512GB 512
PML5Es
(64-bit)
512
PML4Es
(64-bit)
512
PML3Es
(64-bit)
512
PML2Es
(64-bit)
512
PML1Es
(64-bit)
1 1 x 3=1 1GB 512
PML5Es
(64-bit)
512
PML4Es
(64-bit)
512
PML3Es
(64-bit)
512
PML2Es
(64-bit)
512
PML1Es
(64-bit)
1 1 x 2=1 2MB 512
PML5Es
(64-bit)
512
PML4Es
(64-bit)
512
PML3Es
(64-bit)
512
PML2Es
(64-bit)
512
PML1Es
(64-bit)
1 1 x 2=0 4KB 512
PML5Es
(64-bit)
512
PML4Es
(64-bit)
512
PML3Es
(64-bit)
512
PML2Es
(64-bit)
512
PML1Es
(64-bit)



 
virtual address translation (2-level and 3-level)
 
P
S
P
A
E
  3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
4
K
B
0 PDE # PTE # offset
4
M
B
PDE # offset
4
K
B
1 PDP-
TE #
PDE # PTE # offset
2
M
B
PDP-
TE #
PDE # offset

 
virtual address translation (4-level and 5-level)
 
P
S
VA
57
  6
3
  5
7
5
6
  4
8
4
7
  3
9
3
8
  3
0
2
9
  2
1
2
0
  1
2
1
1
   
0
 
4
K
B
0 must be canonical
(i.e. sign-extended)
PML4E # PML3E # PML2E # PML1E # offset
2
M
B
must be canonical
(i.e. sign-extended)
PML4E # PML3E # PML2E # offset
1
G
B
must be canonical
(i.e. sign-extended)
PML4E # PML3E # offset
4
K
B
1 must be
canonical
(i.e. sign-
extended)
PML5E # PML4E # PML3E # PML2E # PML1E # offset
2
M
B
must be
canonical
(i.e. sign-
extended)
PML5E # PML4E # PML3E # PML2E # offset
1
G
B
must be
canonical
(i.e. sign-
extended)
PML5E # PML4E # PML3E # offset
5
1
2
GB
must be
canonical
(i.e. sign-
extended)
PML5E # PML4E # offset
2
5
6
TB
must be
canonical
(i.e. sign-
extended)
PML5E # offset



 
2-level 4KB/4MB paging structures
 
entry 3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
4KB
PDE
page table base AVL G 0 D A P
C
D
P
W
T
U
/
S
W
/
R
P
4MB
PDE
page base  reserved  P
A
T
AVL G 1 D A P
C
D
P
W
T
U
/
S
W
/
R
P
page base (low)  p.b. (high) #1 p. b. (high)
4KB
PTE
page base AVL G P
A
T
D A P
C
D
P
W
T
U
/
S
W
/
R
P
note description
#1 The number of actually implemented bits depends on the number of physical address bits.
The remaining bits are reserved if less than 41 physical address bits are implemented.

 
3-level 4KB/2MB paging structures
 
entry 6
3
6
2
6
1
6
0
5
9
5
8
5
7
5
6
5
5
5
4
5
3
5
2
5
1
5
0
4
9
4
8
4
7
4
6
4
5
4
4
4
3
4
2
4
1
4
0
3
9
3
8
3
7
3
6
3
5
3
4
3
3
3
2
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
PDPTE reserved  
page directory base #1
 
page
directory
base
page directory base AVL res. P
C
D
P
W
T
res. P
4KB
PDE
N
X
reserved  
page table base #1
 
page
table
base
page table base AVL G 0 D A P
C
D
P
W
T
U
/
S
W
/
R
P
2MB
PDE
N
X
reserved  
page base #1
 
page
base
page base reserved P
A
T
AVL G 1 D A P
C
D
P
W
T
U
/
S
W
/
R
P
4KB
PTE
N
X
reserved  
page base #1
 
page
base
page base AVL G P
A
T
D A P
C
D
P
W
T
U
/
S
W
/
R
P
note description
#1 The number of actually implemented bits depends on the number of physical address bits.
The remaining bits are reserved if less than 52 physical address bits are implemented.

 
4-level 4KB/2MB/1GB paging structures
 
entry 6
3
6
2
6
1
6
0
5
9
5
8
5
7
5
6
5
5
5
4
5
3
5
2
5
1
5
0
4
9
4
8
4
7
4
6
4
5
4
4
4
3
4
2
4
1
4
0
3
9
3
8
3
7
3
6
3
5
3
4
3
3
3
2
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
PML4E
for
PML3
N
X
 
AVL
 
 
PML3 base #1
 
PML3
base
PML3 base AVL  G   r.  D A P
C
D
P
W
T
U
/
S
W
/
R
P
r.
PML3E
for
PML2
N
X
 
AVL
 
 
PML2 base #1
 
PML2
base
PML2 base AVL G 0 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML2E
for
PML1
N
X
 
AVL
 
 
PML1 base #1
 
PML1
base
PML1 base AVL G 0 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML3E
for
1GB
page
N
X
 AVL   
page base #1
 
page
base
PK  AVL 
p. b. reserved P
A
T
AVL G 1 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML2E
for
2MB
page
N
X
 AVL   
page base #1
 
page
base
PK  AVL 
page base reserved P
A
T
AVL G 1 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML1E
for
4KB
page
N
X
 AVL   
page base #1
 
page
base
PK  AVL 
page base AVL G P
A
T
D A P
C
D
P
W
T
U
/
S
W
/
R
P
note description
#1 The number of actually implemented bits depends on the number of physical address bits.
The remaining bits are reserved if less than 52 physical address bits are implemented.

 
5-level 4KB/2MB/1GB/512GB/256TB paging structures
 
entry 6
3
6
2
6
1
6
0
5
9
5
8
5
7
5
6
5
5
5
4
5
3
5
2
5
1
5
0
4
9
4
8
4
7
4
6
4
5
4
4
4
3
4
2
4
1
4
0
3
9
3
8
3
7
3
6
3
5
3
4
3
3
3
2
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
PML5E
for
PML4
N
X
 
AVL
 
 
PML4 base #1
 
PML4
base
PML4 base R AVL G 0 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML4E
for
PML3
N
X
 
AVL
 
 
PML3 base #1
 
PML3
base
PML3 base R AVL G 0 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML3E
for
PML2
N
X
 
AVL
 
 
PML2 base #1
 
PML2
base
PML2 base R AVL G 0 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML2E
for
PML1
N
X
 
AVL
 
 
PML1 base #1
 
PML1
base
PML1 base R AVL G 0 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML5E
for
256TB
page
N
X
 AVL  page
base #1
 
reserved
 
PK  AVL 
reserved P
A
T
R AVL G 1 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML4E
for
512GB
page
N
X
 AVL   
page base #1
 
reserved
PK  AVL 
reserved P
A
T
R AVL G 1 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML3E
for
1GB
page
N
X
 AVL   
page base #1
 
page
base
PK  AVL 
p. b. reserved P
A
T
R AVL G 1 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML2E
for
2MB
page
N
X
 AVL   
page base #1
 
page
base
PK  AVL 
page base reserved P
A
T
R AVL G 1 D A P
C
D
P
W
T
U
/
S
W
/
R
P
PML1E
for
4KB
page
N
X
 AVL   
page base #1
 
page
base
PK  AVL 
page base R AVL G P
A
T
D A P
C
D
P
W
T
U
/
S
W
/
R
P
note description
#1 The number of actually implemented bits depends on the number of physical address bits.
The remaining bits are reserved if less than 52 physical address bits are implemented.



 
PKRU
 
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
W
D
1
5
A
D
1
5
W
D
1
4
A
D
1
4
W
D
1
3
A
D
1
3
W
D
1
2
A
D
1
2
W
D
1
1
A
D
1
1
W
D
1
0
A
D
1
0
W
D
9
A
D
9
W
D
8
A
D
8
W
D
7
A
D
7
W
D
6
A
D
6
W
D
5
A
D
5
W
D
4
A
D
4
W
D
3
A
D
3
W
D
2
A
D
2
W
D
1
A
D
1
W
D
0
A
D
0

 
PKRS
 
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
W
D
1
5
A
D
1
5
W
D
1
4
A
D
1
4
W
D
1
3
A
D
1
3
W
D
1
2
A
D
1
2
W
D
1
1
A
D
1
1
W
D
1
0
A
D
1
0
W
D
9
A
D
9
W
D
8
A
D
8
W
D
7
A
D
7
W
D
6
A
D
6
W
D
5
A
D
5
W
D
4
A
D
4
W
D
3
A
D
3
W
D
2
A
D
2
W
D
1
A
D
1
W
D
0
A
D
0



 
#PF exception error code
 
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
R
M
P
reserved S
G
X
reserved H
L
A
T
S
S
P
K
I
/
D
R
S
V
U
/
S
W
/
R
P



main page

© 1996-2024 by Christian Ludloff. All rights reserved. Use at your own risk.