[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] p2m: Small audit fixes.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1231152471 0 # Node ID 5ce75a8eec7fa4274f210bd1dfad91493199972a # Parent 5b44cfde9666e3262e553ec2ad3ddb48fee23f50 p2m: Small audit fixes. Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx> --- xen/arch/x86/mm/p2m.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletion(-) diff -r 5b44cfde9666 -r 5ce75a8eec7f xen/arch/x86/mm/p2m.c --- a/xen/arch/x86/mm/p2m.c Mon Jan 05 10:47:03 2009 +0000 +++ b/xen/arch/x86/mm/p2m.c Mon Jan 05 10:47:51 2009 +0000 @@ -1653,6 +1653,8 @@ static void audit_p2m(struct domain *d) if ( test_linear ) flush_tlb_local(); + spin_lock(&d->page_alloc_lock); + /* Audit part one: walk the domain's page allocation list, checking * the m2p entries. */ for ( entry = d->page_list.next; @@ -1719,6 +1721,8 @@ static void audit_p2m(struct domain *d) // P2M_PRINTK("OK: mfn=%#lx, gfn=%#lx, p2mfn=%#lx, lp2mfn=%#lx\n", // mfn, gfn, p2mfn, lp2mfn); } + + spin_unlock(&d->page_alloc_lock); /* Audit part two: walk the domain's p2m table, checking the entries. */ if ( pagetable_get_pfn(d->arch.phys_table) != 0 ) @@ -1779,7 +1783,7 @@ static void audit_p2m(struct domain *d) for ( i1 = 0; i1 < L1_PAGETABLE_ENTRIES; i1++) { m2pfn = get_gpfn_from_mfn(mfn+i1); - if ( m2pfn != (gfn + i) ) + if ( m2pfn != (gfn + i1) ) { pmbad++; P2M_PRINTK("mismatch: gfn %#lx -> mfn %#lx" _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |