Added a few vm_object debug functions. Fixed few bugs.

Next issues: For every read fault, the fault must traverse the
vma's object stack until the page is found. The problem was that
we were only searching the first object, that object was a writable
shadow, and the shadow didn't have the read-only page, and the 0
return value was interpreted with IS_ERR() and failed, so address
0 was mapped into the location, and QEMU blew off.
This commit is contained in:
Bahadir Balban
2008-03-16 18:57:26 +00:00
parent 0f4a4ae5b4
commit 509e949983
7 changed files with 94 additions and 21 deletions

View File

@@ -17,7 +17,7 @@
#include INC_SUBARCH(mm.h)
/* Abort debugging conditions */
#define DEBUG_ABORTS
//#define DEBUG_ABORTS
#if defined (DEBUG_ABORTS)
#define dbg_abort(...) dprintk(__VA_ARGS__)
#else