x86: add FIX_HOLE
PATCH 1/4 x86: add FIX_HOLE
I have to admit that I don't recall the exact details of where I ran into a problem without this change, but it's a prerequisite for the highmem-assist patch.
xen/include/asm-x86/fixmap.h +1 -0
@@ -29,6 +29,7 @@* from the end of virtual memory backwards. */ enum fixed_addresses { +FIX_HOLE ,#ifdef __i386__FIX_PAE_HIGHMEM_0 ,FIX_PAE_HIGHMEM_END =FIX_PAE_HIGHMEM_0 +NR_CPUS -1 ,
If no explanation can be given as to why this makes the highmem-assist patch work, I can only reasonably take neither patch.
-- Keir
Quoted 28 lines · Jan Beulich
I have to admit that I don't recall the exact details of where I ran into a problem without this change, but it's a prerequisite for the highmem-assist patch.
Signed-off-by Jan Beulich <[email protected]>Index:
2008-09-19/xen/include/asm-x86/fixmap.h
===================================================================
---2008-09-19.orig/xen/include/asm-x86/fixmap.h2008-09-15 11:25:43.000000000 +0200
+++2008-09-19/xen/include/asm-x86/fixmap.h2008-09-19 14:00:01.000000000 +0200xen/include/asm-x86/fixmap.h +1
-0@@ -29,6 +29,7 @@* from the end of virtual memory backwards. */ enum fixed_addresses { +FIX_HOLE ,#ifdef __i386__FIX_PAE_HIGHMEM_0 ,FIX_PAE_HIGHMEM_END =FIX_PAE_HIGHMEM_0 +NR_CPUS -1 ,_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Keir Fraser <[email protected]> 27.10.08 13:06 >>>
If no explanation can be given as to why this makes the highmem-assist patch work, I can only reasonably take neither patch.
Okay, okay, I recalled the problem after some staring at fixmap.h: The BUG_ON() in virt_to_fix() would trigger on FIX_PAE_HIGHMEM_0 without the hole, as fix_to_virt() on that index returns FIXADDR_TOP.
Quoted 7 lines · Jan Beulich
Quoted 6 lines
I have to admit that I don't recall the exact details of where I ran into a problem without this change, but it's a prerequisite for the highmem-assist patch.
Signed-off-by Jan Beulich <[email protected]>