|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Explanation of set_pte_at
Hi,
Can someone please explain the function set_pte_at to me? In
particular, I'm trying to understand the page fault handling in a PV
64-bit Linux.
Here's the sequence that I trace:
1) The Linux page fault handler at linux-2.6.18-xen.hg/mm/
memory.c:do_no_page runs.
2) After getting the page in memory, it calls set_pte_at.
3) set_pte_at has the following definition:
#define set_pte_at(_mm,addr,ptep,pteval) do {
if (((_mm) != current->mm && (_mm) != &init_mm) || \
HYPERVISOR_update_va_mapping((addr), (pteval), 0)) \
set_pte((ptep), (pteval)); \
|
|