Skip to contentSkip to conversation

why each process needs a separate page for kernel's pgd table in PV x86_64?

DISCUSSION weiming 1 participant 1 message Mar 24, 2008

lore
Share & tools
lore

weiming

author
#0 lore raw

Hi,

I notice that in the paravirtualized linux for x86_64, each process allocates 2 pages for mm->pgd: one for kernel's page table, the other for user's page table.

Why not let all processes share the kernel's page table? i.e., add a field in mm struct (like mm->kernel_pgd, ) and let it point to a page, which will be referenced by all process. This can save some 4K for each process forked.

Please correct me if I'm wrong.

Thanks,
Weiming

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel