[Crash-utility] crash-4.0-2.10 ppc64 4-level pagetable fixes

Badari Pulavarty pbadari at us.ibm.com
Wed Nov 9 18:16:12 UTC 2005


> 
> It's kind of a chicken-and-egg situation, where the first readmem() 
> needs the virtual address range stuff to be in place, but we need 
> something out of the kernel data space to determine the virtual 
> address space range data.  That being said, it looks possible, at 
> least in the case of ppc64, that perhaps we could get away with 
> doing a readmem() of a unity-mapped address, since at the 
> point where the VM-range decision is made, machdep->kvbase 
> has just been set.  (Follow the readmem() path, and you'll see 
> what I mean...)  But you'd have to read raw data and muck 
> your way through it because the embedded gdb hasn't been 
> invoked yet.  Badari had asked the same thing earlier, about 
> using the THIS_KERNEL_VERSION macro, but again, the 
> underlying crash data to satisfy the macro doesn't get initialized 
> until after gdb is alive. 


Okay. It looks like we can delay deciding 4-level pagetable layout
till POST_GDB stage. Since THIS_KERNEL_VERSION is set by then, I was
able to use that instead :)

Here is the updated version.

Thanks,
Badari


-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-ppc64-4level-latest2.patch
Type: text/x-patch
Size: 9963 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20051109/02afafd2/attachment.bin>


More information about the Crash-utility mailing list