Re: [PATCH v3 04/12] Add "handle page fault" PV helper.
From: Andi Kleen
Date: Mon Jan 18 2010 - 04:53:32 EST
Peter Zijlstra <peterz@xxxxxxxxxxxxx> writes:
> Whatever are we doing to end up in do_page_fault() as it stands? Surely
> we can tell the CPU to go elsewhere to handle faults?
> Isn't that as simple as calling set_intr_gate(14, my_page_fault)
> somewhere on the cpuinit instead of the regular page_fault handler?
That typically requires ugly ifdefs in entry*S and could be described
as code obfuscation ("come from")
As long as he avoids a global reference (patch) the if should be practially
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/