[Crash-utility] patch to add vmss memory regions support

Dave Anderson anderson at redhat.com
Tue Mar 24 14:17:57 UTC 2015


Dyno,

Can you re-post this path so that it applies cleanly to the
current git repository?  This is what happens:

 $ git clone https://github.com/crash-utility/crash.git
 Cloning into 'crash'...
 remote: Counting objects: 811, done.
 remote: Total 811 (delta 0), reused 0 (delta 0), pack-reused 811
 Receiving objects: 100% (811/811), 1.87 MiB | 1.04 MiB/s, done.
 Resolving deltas: 100% (532/532), done.
 $ cd crash
 $ patch -p1 < ../vmware_memory_region_support.patch
 patching file vmware_vmss.c
 Reversed (or previously applied) patch detected!  Assume -R? [n] n
 Apply anyway? [n] y
 Hunk #1 succeeded at 42 with fuzz 2 (offset 2 lines).
 Hunk #2 succeeded at 141 (offset 2 lines).
 Hunk #3 succeeded at 164 (offset 2 lines).
 Hunk #4 succeeded at 192 (offset 2 lines).
 Hunk #5 succeeded at 217 (offset 2 lines).
 Hunk #6 FAILED at 256.
 Hunk #7 succeeded at 276 (offset 2 lines).
 1 out of 7 hunks FAILED -- saving rejects to file vmware_vmss.c.rej
 patching file vmware_vmss.h
 $

Thanks,
  Dave


----- Original Message -----
> Dave,
> 
> attached patch is to add vmss memroy regions support.
> 
> There might be holes in the memory address saved for PCI etc.
> In such case memory dump is divided into regions. Currently
> up to 3 regions are supported.
> 
> Memory dump larger than 3GB will have the first hole.
> My dropbox space used up, I cannot attach a 4GB memory dump.
> and here is how it looks like in the vmss meta data dump.
> 
> 3GB:
> ===
> - Group: memory pos=0x1f6f6 size=0xc000090c
> ------------------------------------
> align_mask[0, 0] => 0x00ffff
> regionsCount => 0x000000
> Memory[0, 0] => BLOCK, pos=0x20000, size=0xc0000000
> 
> 4GB:
> ===
> - Group: memory pos=0x1f6f6 size=0x10000090c
> -----------------------------------
> align_mask[0, 0] => 0x00ffff
> regionsCount => 0x000002
> regionPageNum[0] => 0x000000
> regionPPN[0] => 0x000000
> regionSize[0] => 0x0c0000
> regionPageNum[1] => 0x0c0000
> regionPPN[1] => 0x100000
> regionSize[1] => 0x040000
> Memory[0, 0] => BLOCK, pos=0x20000, size=0x100000000
> 
> rgds,
> Dyno
> 
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility




More information about the Crash-utility mailing list