direct-io.hg

changeset 4575:41e1779574b4

bitkeeper revision 1.1323.1.2 (42652140LgTunNR_6zFKtu-45HaaTQ)

Bug fix for audit code.
More verbose 'q' debug key.
Signed-off-by: ian.pratt@cl.cam.ac.uk
author iap10@freefall.cl.cam.ac.uk
date Tue Apr 19 15:18:24 2005 +0000 (2005-04-19)
parents 76a627cb3006
children 260db0c4de3b
files xen/arch/x86/audit.c xen/arch/x86/domain.c xen/include/asm-x86/mm.h
line diff
     1.1 --- a/xen/arch/x86/audit.c	Tue Apr 19 15:16:46 2005 +0000
     1.2 +++ b/xen/arch/x86/audit.c	Tue Apr 19 15:18:24 2005 +0000
     1.3 @@ -285,7 +285,7 @@ int audit_adjust_pgtables(struct domain 
     1.4                                     d->id, l1mfn, i, gmfn);
     1.5                              errors++;
     1.6                          }
     1.7 -                    }
     1.8 +                    }		   
     1.9  
    1.10                      if ( page_get_owner(gpage) != d )
    1.11                      {
    1.12 @@ -587,7 +587,7 @@ void _audit_domain(struct domain *d, int
    1.13                               unsigned long mfn)
    1.14      {
    1.15          struct pfn_info *page = &frame_table[mfn];
    1.16 -        unsigned long *pt = map_domain_mem(mfn);
    1.17 +        unsigned long *pt = map_domain_mem(mfn<<PAGE_SHIFT);
    1.18          int i;
    1.19  
    1.20          for ( i = 0; i < L1_PAGETABLE_ENTRIES; i++ )
     2.1 --- a/xen/arch/x86/domain.c	Tue Apr 19 15:16:46 2005 +0000
     2.2 +++ b/xen/arch/x86/domain.c	Tue Apr 19 15:18:24 2005 +0000
     2.3 @@ -185,6 +185,14 @@ void dump_pageframe_info(struct domain *
     2.4                     page->u.inuse.type_info);
     2.5          }
     2.6      }
     2.7 +
     2.8 +    list_for_each_entry ( page, &d->xenpage_list, list )
     2.9 +    {
    2.10 +        printk("XenPage %08x: caf=%08x, taf=%08x\n",
    2.11 +               page_to_phys(page), page->count_info,
    2.12 +               page->u.inuse.type_info);
    2.13 +    }
    2.14 +
    2.15      
    2.16      page = virt_to_page(d->shared_info);
    2.17      printk("Shared_info@%08x: caf=%08x, taf=%08x\n",
     3.1 --- a/xen/include/asm-x86/mm.h	Tue Apr 19 15:16:46 2005 +0000
     3.2 +++ b/xen/include/asm-x86/mm.h	Tue Apr 19 15:18:24 2005 +0000
     3.3 @@ -332,7 +332,7 @@ int audit_adjust_pgtables(struct domain 
     3.4  #define AUDIT_QUIET          ( 1u << 2 )
     3.5  
     3.6  void _audit_domain(struct domain *d, int flags);
     3.7 -#define audit_domain(_d) _audit_domain((_d), 0)
     3.8 +#define audit_domain(_d) _audit_domain((_d), AUDIT_ERRORS_OK)
     3.9  void audit_domains(void);
    3.10  
    3.11  #else