Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | |
| 2 | <previous description obsolete, deleted> |
| 3 | |
| 4 | Virtual memory map with 4 level page tables: |
| 5 | |
Randy Dunlap | 57d3077 | 2007-02-13 13:26:23 +0100 | [diff] [blame] | 6 | 0000000000000000 - 00007fffffffffff (=47 bits) user space, different per mm |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | hole caused by [48:63] sign extension |
Randy Dunlap | 57d3077 | 2007-02-13 13:26:23 +0100 | [diff] [blame] | 8 | ffff800000000000 - ffff80ffffffffff (=40 bits) guard hole |
| 9 | ffff810000000000 - ffffc0ffffffffff (=46 bits) direct mapping of all phys. memory |
| 10 | ffffc10000000000 - ffffc1ffffffffff (=40 bits) hole |
| 11 | ffffc20000000000 - ffffe1ffffffffff (=45 bits) vmalloc/ioremap space |
Christoph Lameter | 0889eba | 2007-10-16 01:24:15 -0700 | [diff] [blame] | 12 | ffffe20000000000 - ffffe2ffffffffff (=40 bits) virtual memory map (1TB) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | ... unused hole ... |
Randy Dunlap | 57d3077 | 2007-02-13 13:26:23 +0100 | [diff] [blame] | 14 | ffffffff80000000 - ffffffff82800000 (=40 MB) kernel text mapping, from phys 0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | ... unused hole ... |
Randy Dunlap | 57d3077 | 2007-02-13 13:26:23 +0100 | [diff] [blame] | 16 | ffffffff88000000 - fffffffffff00000 (=1919 MB) module mapping space |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
Randy Dunlap | 57d3077 | 2007-02-13 13:26:23 +0100 | [diff] [blame] | 18 | The direct mapping covers all memory in the system up to the highest |
Andi Kleen | 8315eca | 2005-11-05 17:25:54 +0100 | [diff] [blame] | 19 | memory address (this means in some cases it can also include PCI memory |
Randy Dunlap | 57d3077 | 2007-02-13 13:26:23 +0100 | [diff] [blame] | 20 | holes). |
Andi Kleen | 8315eca | 2005-11-05 17:25:54 +0100 | [diff] [blame] | 21 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | vmalloc space is lazily synchronized into the different PML4 pages of |
| 23 | the processes using the page fault handler, with init_level4_pgt as |
| 24 | reference. |
| 25 | |
Randy Dunlap | 57d3077 | 2007-02-13 13:26:23 +0100 | [diff] [blame] | 26 | Current X86-64 implementations only support 40 bits of address space, |
| 27 | but we support up to 46 bits. This expands into MBZ space in the page tables. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
| 29 | -Andi Kleen, Jul 2004 |