RE: [rfc] dynamic 3-level / 4-level page table

Chen, Kenneth W
2006-04-28T17:16:25Z

Zoltan Menyhart wrote on Friday, April 28, 2006 1:58 AM
> Could you please describe how e.g. the VHPT miss handler works
> with the modification?
> Especially the "LOAD_PGD()" related operations.

LOAD_PGD() is a clone of pud_offset():

+#define pud_offset(dir,addr) ((pud_t *) (pgtbl3 ? (u64) (dir) : pgd_page(*(dir))) + \
+ (((addr) >> PUD_SHIFT) & (PTRS_PER_PUD - 1)))

Except pgtbl3 condition is evaluated only once at boot time.