Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel page table and copy-on-write fork #2

Open
BigBrotherJu opened this issue May 21, 2022 · 1 comment
Open

kernel page table and copy-on-write fork #2

BigBrotherJu opened this issue May 21, 2022 · 1 comment

Comments

@BigBrotherJu
Copy link

BigBrotherJu commented May 21, 2022

大佬你好,我在尝试把 pgtbl 和 cow 合到一个分支上,但是合并以后,xv6 不能正常工作。kernel page table 和 copy-on-write fork 好像有冲突,请问合并的时候有什么需要注意的点吗?

@ejunjsh
Copy link
Owner

ejunjsh commented May 23, 2022

因为cow的特性,很多页表项都会出现缺页异常,之前正常实验的话,缺页是发生在用户态,但是这两个实验合并的话,缺页就会发生在内核,所以要把用户态缺页处理函数,在内核态也要做一次。我repo下的实验都是一个实验做完一个commit,你可以看看我的commit参考下,太久了,我也不是很记得了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants