[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Bug fix for audit code.



ChangeSet 1.1323.1.2, 2005/04/19 16:18:24+01:00, iap10@xxxxxxxxxxxxxxxxxxxxx

        Bug fix for audit code.
        More verbose 'q' debug key.
        Signed-off-by: ian.pratt@xxxxxxxxxxxx



 arch/x86/audit.c     |    4 ++--
 arch/x86/domain.c    |    8 ++++++++
 include/asm-x86/mm.h |    2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)


diff -Nru a/xen/arch/x86/audit.c b/xen/arch/x86/audit.c
--- a/xen/arch/x86/audit.c      2005-04-20 05:04:12 -04:00
+++ b/xen/arch/x86/audit.c      2005-04-20 05:04:12 -04:00
@@ -285,7 +285,7 @@
                                    d->id, l1mfn, i, gmfn);
                             errors++;
                         }
-                    }
+                    }             
 
                     if ( page_get_owner(gpage) != d )
                     {
@@ -587,7 +587,7 @@
                              unsigned long mfn)
     {
         struct pfn_info *page = &frame_table[mfn];
-        unsigned long *pt = map_domain_mem(mfn);
+        unsigned long *pt = map_domain_mem(mfn<<PAGE_SHIFT);
         int i;
 
         for ( i = 0; i < L1_PAGETABLE_ENTRIES; i++ )
diff -Nru a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     2005-04-20 05:04:12 -04:00
+++ b/xen/arch/x86/domain.c     2005-04-20 05:04:12 -04:00
@@ -185,6 +185,14 @@
                    page->u.inuse.type_info);
         }
     }
+
+    list_for_each_entry ( page, &d->xenpage_list, list )
+    {
+        printk("XenPage %08x: caf=%08x, taf=%08x\n",
+               page_to_phys(page), page->count_info,
+               page->u.inuse.type_info);
+    }
+
     
     page = virt_to_page(d->shared_info);
     printk("Shared_info@%08x: caf=%08x, taf=%08x\n",
diff -Nru a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h
--- a/xen/include/asm-x86/mm.h  2005-04-20 05:04:12 -04:00
+++ b/xen/include/asm-x86/mm.h  2005-04-20 05:04:12 -04:00
@@ -332,7 +332,7 @@
 #define AUDIT_QUIET          ( 1u << 2 )
 
 void _audit_domain(struct domain *d, int flags);
-#define audit_domain(_d) _audit_domain((_d), 0)
+#define audit_domain(_d) _audit_domain((_d), AUDIT_ERRORS_OK)
 void audit_domains(void);
 
 #else

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.