Chris Wright
2007-Apr-18 17:49 UTC
[PATCH 6/6] i386 virtualization - Attempt to clean up pgtable code motion
* zach@vmware.com (zach@vmware.com) wrote:> Virtualization aware Linux kernels may need to redefine functions which write > to hardware page tables at the sub-architecture layer. Previously, this was > done by encapsulation in a split mach-xxx/pgtable-{2|3}level-ops.h file, but > having 8 pgtable header files is simply unacceptable. This goes some ways > towards cleaning that up by deprecating the 2/3 level subarch functions. > This is accomplished by using __HAVE_ARCH_FUNC macros, and allowing > one sub-arch file, pgtable-ops.h, which gets included before any functions > which write to hardware page tables, allowing the sub-architecture to override > any or all definitions it needs.This looks like a better tradeoff.