Displaying 1 result from an estimated 1 matches for "trap_pf_writ".
Did you mean:
trap_pf_write
2008 Jan 18
0
[PATCH] minios: support COW for a zero page
...#define read_cr2() \
(HYPERVISOR_shared_info->vcpu_info[smp_processor_id()].arch.cr2)
@@ -126,6 +166,10 @@ void do_page_fault(struct pt_regs *regs,
void do_page_fault(struct pt_regs *regs, unsigned long error_code)
{
unsigned long addr = read_cr2();
+
+ if ((error_code & TRAP_PF_WRITE) && handle_cow(addr))
+ return;
+
/* If we are already handling a page fault, and got another one
that means we faulted in pagetable walk. Continuing here would cause
a recursive fault */
diff -r 27ad7ed41be2 extras/mini-os/include/ia64/arch_mm.h
--- a/extras/mi...