Shared Address Space
和 Migration
make_device_exclusive_range()
这个函数来标记,让整个 shared memory space 是可以提供 atomic operation 实作的。Physical Memory Model
有看到过的!(也是我们阅读这篇文件的原因之一 XD)sync_cpu_device_pagetables
这个 function 已经不存在在v5.15的 kernel 了,有用 git bisect
来找了一下,是在哪个 commit 把这个相关的 function 删除的commit a22dd506400d0f4784ad596f073b9eb5ed7c6a2a (refs/bisect/bad)
Author: Jason Gunthorpe <[email protected]>
Date: Tue Nov 12 16:22:30 2019 -0400
mm/hmm: remove hmm_mirror and related
The only two users of this are now converted to use mmu_interval_notifier,
delete all the code and update hmm.rst.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jérôme Glisse <[email protected]>
Tested-by: Ralph Campbell <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
sync_cpu_device_pagetables
这个其实是 struct hmm_mirror
的一个成员,是一个 function pointer,不过这个还并不是唯一的修改,在这个 commit 之後,文件和 HMM code 都还有再做修改,所以之後会继续来研究要如何修改现在文件中的 sync_cpu_device_pagetables
的!
原来 GUP 是指 get user page! XDD
这篇文件提到 page migration
,那麽下一篇文件,我们就来看看 page migration 吧!
>>: [Day 24] 字形渲染(Text Rendering) - 渲染文字
学习 Git 时,常常都是在终端机(Terminal)操作,虽然现在有很多图形介面工具(GUI,Gr...
CPU 运作过程中很容易遇到需要等待的情况, 例如 Cache Miss、Data Dependen...
这篇算是笔记 看到有人发问slice有关的问题 有人回答用copy()进行复制slice,我就想跟用...
昨天看过 Linear Regression 的部分了,那我们今天来还债 XDD 大家还记得在 D...
最後,还是到了这最後一天,这第 30 天不完美的完赛,有时候时常都会想,上班就很忙了,开的 Tick...