Discussion:
as_copy
(too old to reply)
kmting
2011-07-22 19:57:05 UTC
Permalink
do we get new physical memory and copy all the data that already in the
parent's page table to the new child page table as as_copy is called?(as
what dumbvm dose)
or do we just create a new empty page table and allocate physical memory
when the child calls vm_fault?

Thank you
cs350
2011-07-22 23:36:40 UTC
Permalink
I answered this already. You need to copy the stack page table and the
stack pages at least.

-Alex
Post by kmting
do we get new physical memory and copy all the data that already in the
parent's page table to the new child page table as as_copy is called?(as what
dumbvm dose)
or do we just create a new empty page table and allocate physical memory when
the child calls vm_fault?
Thank you
Continue reading on narkive:
Loading...