Changeset View
Changeset View
Standalone View
Standalone View
lib/libkvm/kvm_minidump_amd64.c
Show First 20 Lines • Show All 363 Lines • ▼ Show 20 Lines | for (pdeindex = 0; pdeindex < npdes; pdeindex++) { | ||||
if ((pde & AMD64_PG_PS) != 0) { | if ((pde & AMD64_PG_PS) != 0) { | ||||
/* | /* | ||||
* Large page. Iterate on each 4K page section | * Large page. Iterate on each 4K page section | ||||
* within this page. This differs from 4K pages in | * within this page. This differs from 4K pages in | ||||
* that every page here uses the same PDE to | * that every page here uses the same PDE to | ||||
* generate permissions. | * generate permissions. | ||||
*/ | */ | ||||
_kvm_bitmap_set(&bm, pa, AMD64_PAGE_SIZE); | |||||
for (i = 0; i < AMD64_NBPDR; i += AMD64_PAGE_SIZE){ | |||||
jhb: Whitespace nit: s/){/) {/ | |||||
pa = (pde & AMD64_PG_PS_FRAME) + | pa = (pde & AMD64_PG_PS_FRAME) + | ||||
((va & AMD64_PDRMASK) ^ VA_OFF(vm, va)); | ((va & AMD64_PDRMASK) ^ VA_OFF(vm, va)); | ||||
dva = vm->hdr.dmapbase + pa; | dva = vm->hdr.dmapbase + pa; | ||||
_kvm_bitmap_set(&bm, pa, AMD64_PAGE_SIZE); | |||||
if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, | if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, | ||||
_amd64_entry_to_prot(pde), AMD64_NBPDR, pgsz)) { | _amd64_entry_to_prot(pde), AMD64_PAGE_SIZE, pgsz)) { | ||||
goto out; | goto out; | ||||
} | |||||
va += AMD64_PAGE_SIZE; | |||||
} | } | ||||
continue; | continue; | ||||
} | } | ||||
/* 4K pages: pde references another page of entries. */ | /* 4K pages: pde references another page of entries. */ | ||||
ptes = _amd64_pde_first_pte(kd, pdeindex); | ptes = _amd64_pde_first_pte(kd, pdeindex); | ||||
/* Ignore page directory pages that were not dumped. */ | /* Ignore page directory pages that were not dumped. */ | ||||
if (ptes == NULL) | if (ptes == NULL) | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |
Whitespace nit: s/){/) {/