vm: a bit more informative about failed pagefaults
Change-Id: I2b72dfb9291670cb837dfdb279f519892575d4a6
This commit is contained in:
parent
624e7c37d7
commit
4fb3945025
2 changed files with 4 additions and 2 deletions
|
@ -60,8 +60,10 @@ static int anon_pagefault(struct vmproc *vmp, struct vir_region *region,
|
|||
|
||||
assert(ph->ph->refcount > 0);
|
||||
|
||||
if((new_page_cl = alloc_mem(1, allocflags)) == NO_MEM)
|
||||
if((new_page_cl = alloc_mem(1, allocflags)) == NO_MEM) {
|
||||
printf("anon_pagefault: out of memory\n");
|
||||
return ENOMEM;
|
||||
}
|
||||
new_page = CLICK2ABS(new_page_cl);
|
||||
|
||||
/* Totally new block? Create it. */
|
||||
|
|
|
@ -730,7 +730,7 @@ int len;
|
|||
}
|
||||
|
||||
if(r != OK) {
|
||||
printf("map_pf: memtype->ev_pagefault failed\n");
|
||||
printf("map_pf: pagefault in %s failed\n", ph->memtype->name);
|
||||
if(ph)
|
||||
pb_unreferenced(region, ph, 1);
|
||||
return r;
|
||||
|
|
Loading…
Reference in a new issue