Cc: Pekka Paalanen <pq@...>, <linux-kernel@...>, Ingo Molnar <mingo@...>, Christoph Hellwig <hch@...>, Arjan van de Ven <arjan@...>, Pavel Roskin <proski@...>, Steven Rostedt <rostedt@...>, Peter Zijlstra <a.p.zijlstra@...>, <vegard.nossum@...>
It's not an ugly hack, but will be very very difficult. With mmu
notifiers it's probably doable though:
- the linux page tables are never loaded into cr3, but rather kept as a
reference
- page faults are by instantiating ptes into shadow page tables (which
track the linux page tables)
- mmu notifiers are used to drop shadow ptes when the linux ptes change
--
Any sufficiently difficult bug is indistinguishable from a feature.
--