Skip to content

Commit 4b65ca0

Browse files
committed
tests: Add root page table entries following x86_64 direct mapping
To initialize a translation system, the virtual address space may have to be scanned for the direct mapping. The highest scanned address currently corresponds to Linux version 2.6.32 memory layout, but test cases should not rely on it by omitting data beyond that boundary. Add zero entries up to the next mapping contained in the data file. Signed-off-by: Petr Tesarik <[email protected]>
1 parent 20c35a2 commit 4b65ca0

8 files changed

+8
-4
lines changed

tests/xlat-linux-x86_64-2.6.27-cr3-xen.data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
0000000000000000*500
1111
# direct mapping (768M)
1212
@0x401af880
13-
000000003ff86067 0000000000000000*128
13+
000000003ff86067 0000000000000000*238
1414
@0x3ff86000
1515
000000003ff85067
1616
0000000000000000*511

tests/xlat-linux-x86_64-2.6.27-nover.data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# direct mapping (64G)
99
@0x1e10880
1010
000000000221b067
11-
0000000000000000*127
11+
0000000000000000*238
1212
@0x221b000
1313
80000000000001e3*64+40000000
1414
0000000000000000*448

tests/xlat-linux-x86_64-2.6.31-cr3.data

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# direct mapping (64T)
1111
@0x2e10880
1212
000000000221b067*128+1000
13+
0000000000000000*68
1314
@0x221b000
1415
80000000000001e3*65536+40000000
1516
# 2.6.31+ VMEMMAP

tests/xlat-linux-x86_64-2.6.31-kvaddr.data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# direct mapping (62T)
1111
@0xffffffff81e10880
1212
000000000221b067*124+1000
13-
0000000000000000*4
13+
0000000000000000*72
1414
@0xffff88000221b000
1515
80000000000001e3*65536+40000000
1616
# 2.6.31+ VMEMMAP

tests/xlat-linux-x86_64-2.6.31-nover-reloc.data

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# direct mapping (64T)
99
@0x2e10880
1010
000000000221b067*128+1000
11+
0000000000000000*68
1112
@0x221b000
1213
80000000000001e3*65536+40000000
1314
# 2.6.31+ VMEMMAP

tests/xlat-linux-x86_64-2.6.31-nover-xen.data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
00000000010001e1
88
# direct mapping (2G)
99
@0x1e10880
10-
000000000221b067 0000000000000000*128
10+
000000000221b067 0000000000000000*195
1111
@0x221b000
1212
000000000221c067 000000000221d067
1313
0000000000000000*510

tests/xlat-linux-x86_64-2.6.31-nover.data

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# direct mapping (64T)
99
@0x1e10880
1010
000000000221b067*128+1000
11+
0000000000000000*68
1112
@0x221b000
1213
80000000000001e3*65536+40000000
1314
# 2.6.31+ VMEMMAP

tests/xlat-linux-x86_64-4.13-nover.data

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# direct mapping (64T)
99
@0x25c09880
1010
00000000263cb067*128+1000
11+
0000000000000000*68
1112
@0x263cb000
1213
80000000000001e3*65536+40000000
1314
# 2.6.31+ VMEMMAP

0 commit comments

Comments
 (0)