WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Bug fix for audit code.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Bug fix for audit code.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 19 Apr 2005 15:18:24 +0000
Delivery-date: Wed, 20 Apr 2005 09:03:55 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Bug fix for audit code., BitKeeper Bot <=